Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Yocto Project SysVInit and systemd setup
Browse files Browse the repository at this point in the history
Adjusted and tested SysVInit script and systemd service file.

Signed-off-by: Rudolf J Streif <[email protected]>
  • Loading branch information
pragma1ce committed Feb 16, 2016
1 parent 7f31465 commit e705de1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions yocto_template/rvi.init
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions yocto_template/rvi.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e705de1

Please sign in to comment.