Skip to content

Instantly share code, notes, and snippets.

@cquest
Last active November 11, 2020 21:53
Show Gist options
  • Save cquest/61c43c750545cc2b1142bf68aef2847f to your computer and use it in GitHub Desktop.
Save cquest/61c43c750545cc2b1142bf68aef2847f to your computer and use it in GitHub Desktop.
renderd systemd config
[Unit]
Description=renderd service
After=postgresql.target
[Service]
Type=forking
User=www-data
PIDFile=/var/run/renderd/renderd.pid
ExecStartPre=/bin/mkdir -p /var/run/renderd
ExecStart=/usr/bin/nice /usr/bin/renderd
ExecStop=/usr/bin/killall renderd
Restart=on-failure
RestartSec=5
@PhuNH
Copy link

PhuNH commented May 7, 2019

Could you explain why this service is wanted by final.target? As I read here, final.target is for doing something right before the machine shuts down, so I don't understand why renderd should run then.

@pv-chorowitz
Copy link

I just set mine to be WantedBy=multi-user.target and that works very well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment