arch-ppa/src/searx/searx.service

22 lines
404 B
SYSTEMD

[Unit]
Description=Searx server
After=network.target
[Service]
Type=simple
User=searx
Environment=SEARX_SETTINGS_PATH=/etc/searx/settings.yml
PrivateTmp=true
PrivateDevices=true
# Prevent accessing /home, /root and /run/user
ProtectHome=true
# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full
ExecStart=/usr/bin/searx-run
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target