systemd: pass the instance name as argument

This commit is contained in:
Girish Ramakrishnan
2015-09-07 21:16:22 -07:00
parent 210c2f3cc1
commit 51a28842cf

View File

@@ -1,12 +1,12 @@
# http://northernlightlabs.se/systemd.status.mail.on.unit.failure
[Unit]
Description=Cloudron Crash Notifier
Description=Cloudron Crash Notifier for %i
StopWhenUnneeded=true
[Service]
Type=idle
WorkingDirectory=/home/yellowtent/box
ExecStart="/home/yellowtent/box/crashnotifier.js"
ExecStart="/home/yellowtent/box/crashnotifier.js %I"
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production"
KillMode=process
User=yellowtent