Add a file init exemple

Here is a Systemd init file, tweak it to your needs!
This commit is contained in:
Mathias B
2017-03-01 17:24:48 +01:00
committed by GitHub
parent 18705d1faf
commit 927aca5ac0

View File

@@ -0,0 +1,20 @@
[Unit]
Description=Cachet Monitor
After=syslog.target
After=network.target
#After=mysqld.service
#After=postgresql.service
#After=memcached.service
#After=redis.service
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/root
ExecStart=/root/cachet-monitor -c /etc/cachet-monitor.yaml
Restart=always
Environment=USER=root HOME=/root
[Install]
WantedBy=multi-user.target