api/deploy/inetmock.service
Peter Kurfer 63a446d7e5
Prepare systemd deployment
- add systemd service
- add default file
- improve logging to see what kind of errors might occur
- ship multiple prepared config files and replace original one with a symlink
- fix current working directory getter
2020-04-12 00:09:30 +02:00

15 lines
No EOL
341 B
Desktop File

[Unit]
Description=INetMock is a simple service to simulate a valid internet connection
[Service]
Type=simple
User=inetmock
AmbientCapabilities=CAP_NET_BIND_SERVICE
MemoryMax=50M
CPUQuota=20%
EnvironmentFile=/etc/default/inetmock
ExecStart=/usr/bin/inetmock $OPTIONS
WorkingDirectory=/var/lib/inetmock
[Install]
WantedBy=multi-user.target