diff options
author | Rudolf J Streif <rudolf.streif@gmail.com> | 2016-02-15 18:47:22 -0800 |
---|---|---|
committer | Ulf Wiger <ulf@wiger.net> | 2016-02-23 22:24:27 +0100 |
commit | 935a8a230608fae5bfcb13a22afeacf218ae59aa (patch) | |
tree | 2bc8827ee908f2a3b87b0e917726f5e9d6480a7f | |
parent | 8ea6a20ccd5a84451beac54bcd37d7d0f18a000a (diff) | |
download | rvi_core-935a8a230608fae5bfcb13a22afeacf218ae59aa.tar.gz |
Yocto Project SysVInit and systemd setup
Adjusted and tested SysVInit script and systemd service file.
Signed-off-by: Rudolf J Streif <rudolf.streif@gmail.com>
-rwxr-xr-x | yocto_template/rvi.init | 4 | ||||
-rw-r--r-- | yocto_template/rvi.service | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/yocto_template/rvi.init b/yocto_template/rvi.init index adbeef5..069d78a 100755 --- a/yocto_template/rvi.init +++ b/yocto_template/rvi.init @@ -23,13 +23,13 @@ export PATH="/bin/:/usr/bin:/sbin:/usr/sbin" set -e -DAEMON_PATH="/opt/rvi" +DAEMON_PATH="/opt/rvi_core" DAEMON_NAME="rvi" case "$1" in start) echo -n "Starting $DAEMON_NAME: " - $DAEMON_PATH/rvi_ctl start + $DAEMON_PATH/rvi_ctl -c /etc/opt/rvi/rvi.config start RETVAL=$? if [ $RETVAL -eq 0 ] ; then echo "OK" diff --git a/yocto_template/rvi.service b/yocto_template/rvi.service index 7e84825..7e38b78 100644 --- a/yocto_template/rvi.service +++ b/yocto_template/rvi.service @@ -4,12 +4,12 @@ Description=Remote Vehicle Interaction Service Wants=network-online.target [Service] -Environment="HOME=/opt/rvi" +Environment="HOME=/opt/rvi_core" Type=forking StandardOutput=journal StandardError=journal -ExecStart=/opt/rvi/rvi_ctl start -ExecStop=/opt/rvi/rvi_ctl stop +ExecStart=/opt/rvi_core/rvi_ctl -c /etc/opt/rvi/rvi.config start +ExecStop=/opt/rvi_core/rvi_ctl stop GuessMainPID=yes RemainAfterExit=yes |