Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Created October 29, 2025 15:09
Show Gist options
  • Select an option

  • Save yordanoweb/3b02d2f319096c80c8ab83cf2635646d to your computer and use it in GitHub Desktop.

Select an option

Save yordanoweb/3b02d2f319096c80c8ab83cf2635646d to your computer and use it in GitHub Desktop.
NoDogSplash SystemD Service

NoDogSplash SystemD Service

[Unit]
Description=<b>Nodogsplash Captive Portal Service</b>
Documentation=https://github.com/nodogsplash/nodogsplash
After=network.target networking.service
Requires=network.target

[Service]
Type=simple
User=root
Group=root

# Path to Nodogsplash executable
ExecStart=/usr/bin/nodogsplash -f
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/nodogsplash -k

# Restart behavior
Restart=on-failure
RestartSec=30

# Configuration file location
EnvironmentFile=-/etc/nodogsplash/nodogsplash.conf

# Security hardening
# ProtectSystem=full
# ProtectHome=true
# PrivateTmp=yes

# Network and resource limits
# LimitNOFILE=4096
# RestrictAddressFamilies=AF_INET AF_INET6

# Logging
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
Alias=nodogsplash.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment