Last active
November 11, 2020 21:53
-
-
Save cquest/61c43c750545cc2b1142bf68aef2847f to your computer and use it in GitHub Desktop.
renderd systemd config
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=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 |
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
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.