two/systemd/two-hostsvc.service
GnomeZworc 43f58b0852
f-86: deploy: unité two-hostsvc, release et provision du lab #86
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-10-26 23:25:33 +01:00

25 lines
592 B
Desktop File

[Unit]
Description=two DNS and NTP relay of the VPCs
After=network.target
Before=agent.service
[Service]
Type=simple
ExecStart=/opt/two/bin/two-hostsvc
Restart=on-failure
RuntimeDirectory=two/hostsvc
RuntimeDirectoryMode=0700
RuntimeDirectoryPreserve=yes
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
LockPersonality=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
[Install]
WantedBy=multi-user.target