I have everything working now on Ubuntu 15.04 w/ OSM bright, but on each reboot /var/run/renderd is automatically deleted and renderd fails to start as it can't find it's socket directory. I have to manually create this directory each reboot.
Is there a way to do this in the service file? I attempted the following:
[Unit]
Description=Rendering daemon for Openstreetmap tiles
[Service]
User=astump
Type=forking
ExecStart=sudo mkdir /var/run/renderd
ExecStart=sudo chown -R astump /var/run/renderd
ExecStart=/usr/local/bin/renderd -c /usr/local/etc/renderd.conf
ExecStop=/bin/kill -s QUIT $MAINPID
[Install]
WantedBy=multi-user.target
But it still fails to create the /var/run/renderd folder
astump@astump15:~$ sudo systemctl status renderd.service
● renderd.service - Rendering daemon for Openstreetmap tiles
Loaded: loaded (/etc/systemd/system/renderd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2015-05-09 08:26:33 CDT; 1min 46s ago
Process: 6368 ExecStart=/usr/local/bin/renderd -c /usr/local/etc/renderd.conf (code=exited, status=3)
May 09 08:26:33 astump15 renderd[6368]: config renderd(0): Active
May 09 08:26:33 astump15 renderd[6368]: config renderd(0): unix socketname=/var/run/renderd
/renderd.sock
May 09 08:26:33 astump15 renderd[6368]: config renderd(0): num_threads=4
May 09 08:26:33 astump15 renderd[6368]: config renderd(0): tile_dir=/var/lib/mod_tile
May 09 08:26:33 astump15 renderd[6368]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
May 09 08:26:33 astump15 renderd[6368]: config map 0: name(default) file(/usr/local/share/maps/style/OSMBright/OSMBright.xml) uri(/osm_tiles/) htcp() host(localhost)
May 09 08:26:33 astump15 systemd[1]: renderd.service: control process exited, code=exited status=3
May 09 08:26:33 astump15 systemd[1]: Failed to start Rendering daemon for Openstreetmap tiles.
May 09 08:26:33 astump15 systemd[1]: Unit renderd.service entered failed state.
May 09 08:26:33 astump15 systemd[1]: renderd.service failed.
astump@astump15:~$ la /var/run/renderd
ls: cannot access /var/run/renderd: No such file or directory
asked
09 May '15, 14:32
f00dl3a
171●4●4●13
accept rate:
25%