Move from supervisor to systemd
This removes logrotate as well since we use systemd logging
This commit is contained in:
16
setup/container/systemd/apphealthtask.service
Normal file
16
setup/container/systemd/apphealthtask.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Cloudron App Health Monitor
|
||||
OnFailure=crashnotifier@%n.service
|
||||
StopWhenUnneeded=true
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
WorkingDirectory=/home/yellowtent/box
|
||||
Restart=always
|
||||
ExecStart="/home/yellowtent/box/apphealthtask.js"
|
||||
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production"
|
||||
KillMode=process
|
||||
User=yellowtent
|
||||
Group=yellowtent
|
||||
Restart=on-failure
|
||||
|
||||
Reference in New Issue
Block a user