File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,16 @@ Environment="GOPATH=/opt/gotty/"
14
14
Environment ="GOPATH=/opt/gotty/"
15
15
Environment ="GCC_EXEC_PREFIX=/usr/lib/gcc/"
16
16
Environment ="GODEBUG=cgocheck=0"
17
+ PermissionsStartOnly =true
17
18
ExecStartPre =-+/bin/mkdir /sys/fs/cgroup/systemd
18
19
ExecStartPre =-+/bin/mount -t cgroup -o none,name =systemd cgroup /sys/fs/cgroup/systemd
19
20
ExecStartPre =-+/bin/chgrp -R cgroupusers /sys/fs/cgroup
20
21
ExecStartPre =-+/bin/chmod -R u =rwx,g =rwx /sys/fs/cgroup
21
22
ExecStartPre =-+/bin/chmod 4755 /usr/bin/nsenter
23
+ ExecStartPre =-+/bin/chmod 644 /opt/gotty/.gitconfig
22
24
ExecStart =/usr/local/bin/gotty -w --max-connection 2564 --port 80 --title-format "<fmt><title>{{ .command }}</title><jid>{{ encodePID .pid }}</jid></fmt>"
25
+ ExecStartPost =/bin/sleep 1
26
+ ExecStartPost =/bin/chmod 400 /opt/gotty/.gitconfig
23
27
ExecStop =/usr/bin/pkill gotty
24
28
LimitNOFILE =4096
25
29
#to be filled by environment variables
You can’t perform that action at this time.
0 commit comments