aboutsummarylogtreecommitdiffstats
path: root/arangodb.install
diff options
context:
space:
mode:
authorMike Williamson2016-08-24 11:17:04 -0400
committerMike Williamson2016-08-24 11:22:04 -0400
commitd71306a1e7636e5a7884bf625bfd2c01b9285de5 (patch)
tree1b1498f94dad4227fc02e842d9f8870c9a36f493 /arangodb.install
parent6739d6b236ebcafa6e73558eaecb74aa2594beef (diff)
downloadaur-d71306a1e7636e5a7884bf625bfd2c01b9285de5.tar.gz
Add proper handling of pidfile
arangodb-tmpfile.conf specifies the /run directory that ArangoDB will need to create it's pidfile. We are now using systemd-tmpfiles to create the whatever is specifed in that file in the post_install hook.
Diffstat (limited to 'arangodb.install')
-rw-r--r--arangodb.install3
1 files changed, 2 insertions, 1 deletions
diff --git a/arangodb.install b/arangodb.install
index d6b8783b7ab4..091476ff5295 100644
--- a/arangodb.install
+++ b/arangodb.install
@@ -7,7 +7,6 @@ pre_install() {
install -o arangodb -g arangodb -m 755 -d "/var/lib/arangodb3"
install -o arangodb -g arangodb -m 755 -d "/var/lib/arangodb3-apps"
install -o arangodb -g arangodb -m 755 -d "/var/log/arangodb3"
- install -o arangodb -g arangodb -m 755 -d "/var/run/arangodb3"
}
post_install() {
@@ -16,6 +15,8 @@ post_install() {
chown -R arangodb:arangodb "/var/lib/arangodb3-apps" &> /dev/null
chown -R arangodb:arangodb "/var/log/arangodb3" &> /dev/null
+ systemd-tmpfiles --create arangodb.conf
+
cat <<-EOF
Welcome to ArangoDB.