25 lines
592 B
Desktop File
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
|