]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Use systemd RuntimeDirectory for /run/freeswitch
authorTravis Cross <tc@traviscross.com>
Tue, 22 Sep 2015 04:23:20 +0000 (04:23 +0000)
committerTravis Cross <tc@traviscross.com>
Tue, 22 Sep 2015 05:50:41 +0000 (05:50 +0000)
commit0aca2c714d04f843803b5bd79d7115e02da15163
tree0305632ab6d3d36be2b47d9c4a347a019d8e59d5
parentcd4ebc67c428eda200b26857e2fd9e7666899101
Use systemd RuntimeDirectory for /run/freeswitch

This changes how we create the temporary directory /run/freeswitch
when starting FS with systemd.  The /run directory starts empty after
a system reboot, so we need to ensure this directory is present.

As part of systemd.exec(5), systemd provides a mechanism to
automatically manage these directories under /run and to bind their
lifetime to the lifetime of the process.

This commit moves to using the RuntimeDirectory= mechanism and removes
the obsolete ExecStartPre/mkdir code.

FS-7130
debian/freeswitch-systemd.freeswitch.service