[Unit] Description=LuPhoto photo site (photos.luciochen.com) Documentation=https://github.com/luciochen233/luphoto After=network-online.target Wants=network-online.target [Service] Type=simple User=luphoto Group=luphoto ExecStart=/usr/bin/luphoto -config /etc/luphoto/config.toml run ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5 TimeoutStopSec=30 Nice=5 UMask=0022 ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true NoNewPrivileges=true ReadOnlyPaths=/srv/luphoto/albums ReadWritePaths=/var/lib/luphoto /var/cache/luphoto CapabilityBoundingSet= AmbientCapabilities= RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX RestrictNamespaces=true RestrictRealtime=true RestrictSUIDSGID=true LockPersonality=true ProtectKernelTunables=true ProtectKernelModules=true ProtectKernelLogs=true ProtectControlGroups=true ProtectClock=true ProtectHostname=true SystemCallArchitectures=native [Install] WantedBy=multi-user.target