add systemd unit
This commit is contained in:
1 file changed
+13
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=myRPC Server Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/bin/myrpc-server
|
||||||
|
Restart=always
|
||||||
|
User=root
|
||||||
|
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in new issue
Block a user