From 0ac4b5cc54d91eb2cd547514c5973c00e7e9bdc4 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 16 Dec 2024 15:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AAservice?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/transm.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 linux/transm.service diff --git a/linux/transm.service b/linux/transm.service new file mode 100644 index 0000000..b994824 --- /dev/null +++ b/linux/transm.service @@ -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