diff options
author | Andreas Nüßlein | 2017-06-19 14:01:42 +0200 |
---|---|---|
committer | Andreas Nüßlein | 2017-06-19 14:01:42 +0200 |
commit | 7644561b0af8eb73cbcd859e325357d2a6c5b60e (patch) | |
tree | 0f5de16d74d0f1329116f940facb62c2572ed73e | |
parent | 65c10d3ae775a1635a4941b11b450e0e33d5fd76 (diff) | |
download | aur-7644561b0af8eb73cbcd859e325357d2a6c5b60e.tar.gz |
added systemd service file
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | aerospike.service | 13 |
2 files changed, 19 insertions, 3 deletions
@@ -48,8 +48,8 @@ E=O=F install -Dm755 bin/aerospike "${pkgdir}/usr/bin/aerospike" install -Dm755 bin/asd "${pkgdir}/usr/bin/asd" - sed -e "s|${srcdir}/init||g" -i etc/aerospike.conf - sed -e "s|/share/udf/lua|/usr/share/udf/lua|" -i etc/aerospike.conf + sed -e "s|${srcdir}/init||g" -i etc/aerospike.conf + sed -e "s|/share/udf/lua|/usr/share/udf/lua|" -i etc/aerospike.conf install -Dm644 etc/aerospike.conf "${pkgdir}/etc/aerospike.conf" cat << E=O=F > "${pkgdir}/etc/aerospike.rc" export AEROSPIKE_DAEMON=/usr/bin/asd @@ -93,5 +93,8 @@ E=O=F install -Dm755 share/udf/lua/stream_ops.lua "${pkgdir}/usr/share/udf/lua/stream_ops.lua" # install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - + + # Systemd + install -m755 -d ${pkgdir}/usr/lib/systemd/system || return 1 + install -m644 $startdir/aerospike.service ${pkgdir}/usr/lib/systemd/system || return 1 } diff --git a/aerospike.service b/aerospike.service new file mode 100644 index 000000000000..727d01771734 --- /dev/null +++ b/aerospike.service @@ -0,0 +1,13 @@ +[Unit] +Description=Aerospike Database +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/aerospike.pid +ExecStart=/usr/bin/aerospike start +ExecReload=/usr/bin/aerospike restart +ExecStop=/usr/bin/aerospike stop + +[Install] +WantedBy=multi-user.target |