
Aber ein start-stop-Skript ist das natuerlich auch nicht, vllt aber ein Anfang^^local.start and local.stop
With OpenRC, /etc/conf.d/local.start and local.stop are deprecated. During the migration to OpenRC, the files are moved to /etc/local.d and gain the suffix .start or .stop. OpenRC then executes those in alphabetic order.
Code: Select all
#!/sbin/runscript
depend() {
need XXX
use XXX
}
start() {
ebegin "Starting MyProgram"
#startscript aufrufen
eend $?
}
stop() {
ebegin "Stopping MyProgram"
#stopscript aufrufen
eend $?
}Code: Select all
source /etc/profile
/deinscript startCode: Select all
su -lc 'source /etc/profile; /deinscript start' deinscriptuser