添加一个service示例

This commit is contained in:
taynpg 2024-12-16 15:34:04 +08:00
parent 760caffbcf
commit 0ac4b5cc54

15
linux/transm.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=transm(taynpg)
After=network.target
[Service]
Type=simple
User=typ
Group=typ
WorkingDirectory=/home/typ/program/transm
ExecStart=/home/typ/program/transm/transms 9898
ExecReload=/bin/kill -s KILL $MAINPID
Restart=never
[Install]
WantedBy=multi-user.target