Set service working directories
This commit is contained in:
parent
2de6778d9e
commit
7c64601a74
3 changed files with 2 additions and 6 deletions
6
.github/workflows/linux-control-agent.yml
vendored
6
.github/workflows/linux-control-agent.yml
vendored
|
|
@ -82,12 +82,6 @@ jobs:
|
||||||
sudo sh -c "tr '\0' '\n' </proc/$main_pid/environ | grep '^ASPNETCORE_'" \
|
sudo sh -c "tr '\0' '\n' </proc/$main_pid/environ | grep '^ASPNETCORE_'" \
|
||||||
>>"$smoke_log" 2>&1 || true
|
>>"$smoke_log" 2>&1 || true
|
||||||
sudo sh -c "printf 'wchan='; cat /proc/$main_pid/wchan" >>"$smoke_log" 2>&1 || true
|
sudo sh -c "printf 'wchan='; cat /proc/$main_pid/wchan" >>"$smoke_log" 2>&1 || true
|
||||||
sudo ls -l "/proc/$main_pid/fd" >>"$smoke_log" 2>&1 || true
|
|
||||||
sudo lsof -p "$main_pid" >>"$smoke_log" 2>&1 || true
|
|
||||||
if command -v strace >/dev/null 2>&1; then
|
|
||||||
sudo timeout 3 strace -f -p "$main_pid" -e trace=file,network,read,write,poll,select \
|
|
||||||
>>"$smoke_log" 2>&1 || true
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
message="$(tail -c 6000 "$smoke_log" | sed ':a;N;$!ba;s/%/%25/g;s/\r/%0D/g;s/\n/%0A/g')"
|
message="$(tail -c 6000 "$smoke_log" | sed ':a;N;$!ba;s/%/%25/g;s/\r/%0D/g;s/\n/%0A/g')"
|
||||||
printf '::error title=%s::%s\n' "$title" "$message"
|
printf '::error title=%s::%s\n' "$title" "$message"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ Type=simple
|
||||||
User=ochenstarik-smm-agent
|
User=ochenstarik-smm-agent
|
||||||
Group=ochenstarik-smm-agent
|
Group=ochenstarik-smm-agent
|
||||||
EnvironmentFile=/etc/ochenstarik-server-monitor-manager/agent.env
|
EnvironmentFile=/etc/ochenstarik-server-monitor-manager/agent.env
|
||||||
|
WorkingDirectory=/usr/local/lib/ochenstarik-server-monitor-manager/agent
|
||||||
ExecStart=/usr/local/lib/ochenstarik-server-monitor-manager/agent/ochenstarik-smm-agent
|
ExecStart=/usr/local/lib/ochenstarik-server-monitor-manager/agent/ochenstarik-smm-agent
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ Type=simple
|
||||||
User=ochenstarik-smm-control
|
User=ochenstarik-smm-control
|
||||||
Group=ochenstarik-smm-control
|
Group=ochenstarik-smm-control
|
||||||
EnvironmentFile=/etc/ochenstarik-server-monitor-manager/control.env
|
EnvironmentFile=/etc/ochenstarik-server-monitor-manager/control.env
|
||||||
|
WorkingDirectory=/usr/local/lib/ochenstarik-server-monitor-manager/control
|
||||||
ExecStart=/usr/local/lib/ochenstarik-server-monitor-manager/control/ochenstarik-smm-control
|
ExecStart=/usr/local/lib/ochenstarik-server-monitor-manager/control/ochenstarik-smm-control
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue