Skip to content

Latest commit

History

History
25 lines (18 loc) 路 642 Bytes

service.md

File metadata and controls

25 lines (18 loc) 路 642 Bytes

Systemd

Deploy with systemd so your application would restart automatically when failed.

Example from here:

[Unit]
Description=Mixin Network Kernel Daemon
After=network.target

[Service]
User=one
Type=simple
ExecStart=/home/one/bin/mixin kernel -dir /home/one/data/mixin -port 7239
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

Edit those fields with your application's path and details.

For tutorial of writing service file, visit here.