Create agent.service

This commit is contained in:
arjundashrath 2022-02-10 09:50:32 +05:30 committed by GitHub
commit b40a7693aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
dist/pre/agent.service vendored Normal file
View file

@ -0,0 +1,15 @@
[Unit]
Description=Agent
After=network.target
[Service]
Type=simple
ExecStart=/home/agent/agent
WorkingDirectory=/home/agent
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=agentservice
AmbientCapabilities=CAP_NET_BIND_SERVICE, CAP_NET_ADMIN
[Install]
WantedBy=multi-user.target