Created
October 12, 2017 16:48
-
-
Save mithereal/f18c632f08f7a7e69c387131a2770379 to your computer and use it in GitHub Desktop.
tile38 systemd script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Advanced Geolocation store | |
After=network.target | |
Documentation=http://tile38.com/documentation/, man:redis-server(1) | |
[Service] | |
Type=forking | |
ExecStart=/srv/geodb/tile38-server | |
PIDFile=/var/run/tile38/tile38-server.pid | |
TimeoutStopSec=0 | |
Restart=always | |
User=tile38 | |
Group=tile38 | |
ExecStop=/bin/kill -s TERM $MAINPID | |
PrivateTmp=yes | |
PrivateDevices=yes | |
ProtectHome=yes | |
ReadOnlyDirectories=/ | |
ReadWriteDirectories=-/var/lib/tile38 | |
ReadWriteDirectories=-/var/log/tile38 | |
ReadWriteDirectories=-/var/run/tile38 | |
CapabilityBoundingSet=~CAP_SYS_PTRACE | |
# redis-server writes its own config file when in cluster mode so we allow | |
# writing there (NB. ProtectSystem=true over ProtectSystem=full) | |
ProtectSystem=true | |
ReadWriteDirectories=-/etc/tile38 | |
[Install] | |
WantedBy=multi-user.target | |
Alias=tile38.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment