labuser@lab1:/opt/minemeld/engine/core$ sudo systemctl cat minemeld.service
# /lib/systemd/system/minemeld.service
[Unit]
Description=Process Monitoring and Control Daemon
Requires=network.target redis.service collectd.service
After=network.target redis.service collectd.service
[Service]
Type=forking
LimitNOFILE=65535
PIDFile=/var/run/minemeld/minemeld.pid
ExecStartPre=-/bin/mkdir /var/run/minemeld
ExecStartPre=/bin/chown -R minemeld:minemeld /var/run/minemeld/
PermissionsStartOnly=true
User=minemeld
Group=minemeld
ExecStart=/opt/minemeld/engine/current/bin/supervisord -c /opt/minemeld/supervisor/config/supervisord.conf -
ExecStop=/opt/minemeld/engine/current/bin/supervisord -c /opt/minemeld/supervisor/config/supervisord.conf st
ExecStopPost=/bin/rm -f /var/run/minemeld/minemeld.pid
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=process
TimeoutStopSec=610
[Install]
WantedBy=multi-user.target