2015-09-07 11:18:44 -07:00
|
|
|
# http://northernlightlabs.se/systemd.status.mail.on.unit.failure
|
|
|
|
|
[Unit]
|
2015-09-07 21:16:22 -07:00
|
|
|
Description=Cloudron Crash Notifier for %i
|
2015-09-07 21:40:01 -07:00
|
|
|
# otherwise, systemd will kill this unit immediately as nobody requires it
|
|
|
|
|
StopWhenUnneeded=false
|
2015-09-07 11:18:44 -07:00
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=idle
|
|
|
|
|
WorkingDirectory=/home/yellowtent/box
|
2016-04-19 16:45:05 -07:00
|
|
|
ExecStart="/home/yellowtent/box/crashnotifierservice.js" %I
|
2015-09-07 11:18:44 -07:00
|
|
|
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production"
|
|
|
|
|
KillMode=process
|
|
|
|
|
User=yellowtent
|
|
|
|
|
Group=yellowtent
|
2015-09-10 14:19:44 -07:00
|
|
|
MemoryLimit=50M
|