Skip to content

Commit 0d49565

Browse files
committed
chore: update example service config
1 parent 280c507 commit 0d49565

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conf/systemd/etc/systemd/system/ghfs.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=network.target
44

55
[Service]
66
Type=simple
7-
ExecStartPre=/sbin/setcap CAP_NET_BIND_SERVICE=+ep /usr/local/bin/ghfs
7+
AmbientCapabilities=CAP_NET_BIND_SERVICE
88
ExecStart=/sbin/runuser -u nobody -- /usr/local/bin/ghfs --config=/etc/ghfs.conf
99
# ExecStart=/sbin/runuser -u nobody -- sh -c 'GHFS_CPU_PROFILE_FILE=/var/log/cpu-`date +%%F-%%T`.pprof exec /usr/local/bin/ghfs --config=/etc/ghfs.conf'
1010
ExecReload=/bin/kill -s HUP $MAINPID

conf/systemd/etc/systemd/system/ghfs@.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=network.target
44

55
[Service]
66
Type=simple
7-
ExecStartPre=/sbin/setcap CAP_NET_BIND_SERVICE=+ep /usr/local/bin/ghfs
7+
AmbientCapabilities=CAP_NET_BIND_SERVICE
88
ExecStart=/sbin/runuser -u nobody -- /usr/local/bin/ghfs --config=/etc/ghfs_%I.conf
99
# ExecStart=/sbin/runuser -u nobody -- sh -c 'GHFS_CPU_PROFILE_FILE=/var/log/cpu-`date +%%F-%%T`.pprof exec /usr/local/bin/ghfs --config=/etc/ghfs_%I.conf'
1010
ExecReload=/bin/kill -s HUP $MAINPID

0 commit comments

Comments
 (0)