NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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's gravatar image

f00dl3a
1714413
accept rate: 25%


... another question I answered on my own!

Typo in the tmpfiles.d/renderd.conf file - fixed it and it's working.

permanent link

answered 09 May '15, 19:18

f00dl3a's gravatar image

f00dl3a
1714413
accept rate: 25%

Here's how I do it with upstart: http://blog.systemed.net/post/6. You may be able to adapt it to systemd. (Domain name similarity coincidental!)

permanent link

answered 09 May '15, 15:21

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

edited 09 May '15, 15:21

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×105
×44

question asked: 09 May '15, 14:32

question was seen: 5,799 times

last updated: 09 May '15, 19:18

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum