Add systemd service

This commit is contained in:
Yupeng Chen 2023-07-25 22:28:43 +08:00
parent 4364e27e97
commit e7e300b338
Signed by: cyp0633
GPG Key ID: A9F96679CAF4A2B9
1 changed files with 13 additions and 0 deletions

13
init/drcom-go.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Drcom implementation in Golang
After=network.target
Documentation=https://github.com/cyp0633/drcom-go
[Service]
Type=simple
ExecStart=/usr/bin/drcom-go dhcp -c /etc/drcom.conf
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target