diff options
author | 6543 | 2020-07-18 18:55:01 +0200 |
---|---|---|
committer | 6543 | 2020-07-18 18:55:01 +0200 |
commit | 900b404de3c6836122be07e636a86fb0567ba91b (patch) | |
tree | 702346be0915a0b62a3070b378eb89ae28d8b359 /i2p.initd | |
parent | d113e3b3063a181c63fb775ce9c6443fab983a74 (diff) | |
download | aur-900b404de3c6836122be07e636a86fb0567ba91b.tar.gz |
set correct workdir
Diffstat (limited to 'i2p.initd')
-rw-r--r-- | i2p.initd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i2p.initd b/i2p.initd index c19d9cc6193f..47299e1b89a0 100644 --- a/i2p.initd +++ b/i2p.initd @@ -7,6 +7,7 @@ pidfile="/run/i2p/$RC_SVCNAME.pid" command="/usr/bin/java-service-wrapper" command_args="/opt/i2p/wrapper.config wrapper.name=i2prouter wrapper.syslog.ident=i2prouter wrapper.daemonize=TRUE TZ=UTC" command_background=1 +workdir=/opt/i2p depend() { use net @@ -16,6 +17,8 @@ depend() { start() { ebegin "Start ${SVCNAME}" + cd $workdir + export HOME=$workdir su -s /bin/sh -c "$command $command_args" $user eend $? |