mirror of
https://github.com/bytedance/g3.git
synced 2026-05-21 10:24:25 +00:00
22 lines
680 B
Desktop File
22 lines
680 B
Desktop File
[Unit]
|
|
Description=G3 Keyless Server %i
|
|
After=syslog.target network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
RuntimeDirectory=g3keymess
|
|
RuntimeDirectoryPreserve=yes
|
|
EnvironmentFile=-/etc/g3keymess/%i/env
|
|
ExecStartPre=/bin/sh -c "[ ! -e $RUNTIME_DIRECTORY/%i.sock ] || rm $RUNTIME_DIRECTORY/%i.sock"
|
|
ExecStart=/usr/bin/g3keymess -c /etc/g3keymess/%i/ --control-dir $RUNTIME_DIRECTORY -s -G %i
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
ExecStop=-/usr/bin/g3keymess-ctl --control-dir $RUNTIME_DIRECTORY -G %i -p $MAINPID offline
|
|
KillMode=none
|
|
Restart=on-success
|
|
SuccessExitStatus=SIGQUIT
|
|
TimeoutStartSec=10
|
|
LimitNOFILE=10485760
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|