mirror of
https://github.com/bytedance/g3.git
synced 2026-05-19 16:28:21 +00:00
21 lines
583 B
Desktop File
21 lines
583 B
Desktop File
[Unit]
|
|
Description=G3 Keyless Server %i
|
|
After=syslog.target network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
RuntimeDirectory=g3keymess
|
|
RuntimeDirectoryPreserve=yes
|
|
EnvironmentFile=-/etc/g3keymess/%i/env
|
|
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
|