Goip systemd service

cat /etc/systemd/system/goip.service

We should start goip service after mysql and we should be sure that it will autorestart on crash.

[Unit]
Description=goip
After=mariadb.service

[Service]
Type=forking
ExecStart=/usr/local/goip/run_goipcron
RemainAfterExit=no
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target

Leave a Reply

Your email address will not be published. Required fields are marked *