1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shiori_ynh.git synced 2024-09-03 20:26:17 +02:00
shiori_ynh/conf/systemd.service

61 lines
1.3 KiB
SYSTEMD
Raw Normal View History

2022-01-10 15:18:34 +01:00
[Unit]
Description=Shiori: Simple bookmark manager
2022-01-12 10:22:29 +01:00
Requires=network-online.target
After=network-online.target
2022-01-10 15:18:34 +01:00
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
2022-01-12 09:04:38 +01:00
ExecStart=__FINALPATH__/shiori serve --port __PORT__
2022-01-12 10:18:27 +01:00
Restart=always
2022-01-10 15:18:34 +01:00
Environment="SHIORI_DIR=__DATADIR__"
2022-01-12 10:18:27 +01:00
DynamicUser=true
PrivateUsers=true
ProtectHome=true
ProtectKernelLogs=true
RestrictAddressFamilies=AF_INET AF_INET6
StateDirectory=shiori
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
SystemCallFilter=~@chown
SystemCallFilter=~@keyring
SystemCallFilter=~@memlock
SystemCallFilter=~@setuid
DeviceAllow=
CapabilityBoundingSet=
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectControlGroups=true
ProtectKernelTunables=true
ProtectSystem=full
ProtectClock=true
ProtectKernelModules=true
ProtectProc=noaccess
ProtectHostname=true
ProcSubset=pid
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=~@clock
SystemCallFilter=~@debug
SystemCallFilter=~@module
SystemCallFilter=~@mount
SystemCallFilter=~@raw-io
SystemCallFilter=~@reboot
SystemCallFilter=~@privileged
SystemCallFilter=~@resources
SystemCallFilter=~@cpu-emulation
SystemCallFilter=~@obsolete
UMask=0077
2022-01-10 15:18:34 +01:00
[Install]
WantedBy=multi-user.target