1
Files
specfiles/centrifugo/centrifugo.service
Sergei Fedosov 1d8a4beba5 Initial commit
2019-07-18 14:20:46 +03:00

28 lines
754 B
Desktop File

[Unit]
Description=Centrifugo real-time messaging server
Documentation=https://github.com/centrifugal/centrifugo
# start once the network and logging subsystems available
After=network.target syslog.target
[Service]
User=centrifugo
Group=centrifugo
LimitNOFILE=65536
Environment="CONFIG=/etc/centrifugo/config.json"
EnvironmentFile=/etc/sysconfig/centrifugo
ExecStartPre=/usr/sbin/centrifugo checkconfig -c $CONFIG
ExecStart=/usr/sbin/centrifugo -c $CONFIG $CENTRIFUGO_OPTS
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -SIGTERM $MAINPID
TimeoutStopSec=10
KillMode=control-group
RestartSec=1
Restart=on-failure
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=centrifugo
[Install]
WantedBy=multi-user.target
Alias=centrifugo.service