📄 alertengine.in
字号:
#!/usr/bin/env bash###################### $Id: alertengine.in 2013 2003-11-14 13:05:11Z mortenv $# This file is part of the NAV project.# This script controls start/stop/status of the NAV alertEngine Daemon.## Copyright (c) 2003 by NTNU, ITEA nettgruppen# Authors: Arne Oslebo <arne.oslebo@uninett.no>#####################prefix=@prefix@exec_prefix=@exec_prefix@sysconfdir=@sysconfdir@initdir=@initdir@bindir=@bindir@user=@nav_user@# Source function library.. ${initdir}/functions[ -x ${bindir}/alertdaemon.pl ] || exit 1cd ${bindir}# See how we were called.case "$1" in start) # Start daemons. echo -n "Starting alertengine: " daemon "su - ${user} -c ${bindir}/alertdaemon.pl start" rc=$? echo exit $rc; ;; stop) # Stop daemons. echo -n "Shutting down alertengine: " daemon "su - ${user} -c ${bindir}/alertdaemon.pl stop" rc=$? echo exit $rc; ;; restart) $0 stop $0 start ;; status) rc= status alertengine exit $rc; ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1esacexit 0# === End of File ===
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -