I start the script and it says that it is ok (* Starting cored server ...) and when i hit one more time start command it's written * WARNING: cored has already been started. BUT when check status it's written crashed ( * status: crashed). When I do stop, script stops service on correct way.
The issue is status of service. I didn't implement status because it is built-in. Please help me how to solve issue about status.
Below is script
------------------------------------------------------------------------------------------------
Code: Select all
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
#need localmount
use net
}
start() {
ebegin "Starting cored server"
start-stop-daemon --umask 0 -d /home/app/control --user test --background --start --exec \
env GENICAM_GENTL32_PATH="/usr/local/Vimba_1_3/AVTGigETL/CTI/x86_32bit" GENICAM_GENTL64_PATH="/usr/local/Vimba_1_3/AVTGigETL/CTI/x86_64bit" \
/home/app/control/vmsis_cored \
#--make-pidfile --pidfile /var/run/vmsis_cored.pid
eend $?
}
stop() {
ebegin "Stopping vmsis_cored server"
start-stop-daemon --user vlatacom --stop --exec /home/app/control/vmsis_cored \
#--pidfile /var/run/vmsis_cored.pid --retry 5
eend $?
}Application /home/app/control/vmsis_cored is a daemon.
When I start application in console everything is ok.
[Moderator edit: added
Code: Select all
tags to preserve output layout. -Hu][/color][/i]


