drone-ci-configs/etc/systemd/system/drone.service

48 lines
1.1 KiB
SYSTEMD
Raw Normal View History

# /etc/systemd/system/drone.service
2020-05-29 12:58:04 +02:00
[Unit]
Description=Drone server
After=docker.service nginx.service
[Service]
Slice=drone.slice
Delegate=yes
2020-05-29 12:58:04 +02:00
Restart=always
RestartSec=5
2022-04-20 16:49:23 +02:00
ExecStart=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml up --remove-orphans
ExecStop=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml stop
Nice=-14
IOSchedulingClass=1
IOSchedulingPriority=0
CapabilityBoundingSet=
CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_CHROOT CAP_AUDIT_*
SystemCallFilter=~memfd_create @reboot @swap @resources @cpu-emulation @debug @module @clock @raw-io @obsolete
2022-04-20 16:52:11 +02:00
ProtectProc=invisible
ProcSubset=pid
ProtectHome=true
2022-04-20 16:52:59 +02:00
RestrictNamespaces=true
NoNewPrivileges=True
# SecureBits=noroot-locked
ProtectSystem=strict
PrivateTmp=true
PrivateDevices=true
PrivateUsers=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
LockPersonality=true
MemoryDenyWriteExecute=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
2020-05-29 12:58:04 +02:00
[Install]
WantedBy=multi-user.target
2022-03-20 21:03:24 +01:00
# vim: ft=systemd