Add a file init exemple
Here is a Systemd init file, tweak it to your needs!
This commit is contained in:
20
exemple.cachet-monitor.service
Normal file
20
exemple.cachet-monitor.service
Normal 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
|
||||
Reference in New Issue
Block a user