Commit version 24.12.13800
This commit is contained in:
13
scripts/systemd/observium_agent.service
Normal file
13
scripts/systemd/observium_agent.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Observium Agent Service
|
||||
After=network.target observium_agent.socket
|
||||
Requires=observium_agent.socket
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
# Note the - to make systemd ignore the exit code
|
||||
ExecStart=-/usr/bin/observium_agent
|
||||
# This is the part that makes it work like inetd
|
||||
StandardOutput=socket
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
10
scripts/systemd/observium_agent.socket
Normal file
10
scripts/systemd/observium_agent.socket
Normal file
@ -0,0 +1,10 @@
|
||||
[Install]
|
||||
WantedBy = sockets.target
|
||||
[Unit]
|
||||
Description=Observium Agent Socket
|
||||
PartOf=observium_agent.service
|
||||
[Socket]
|
||||
ListenStream=36602
|
||||
Accept=yes
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
Reference in New Issue
Block a user