Edit

IABSD.fr/ports/sysutils/nut/pkg/upsmon.rc

Branch :

  • Show log

    Commit

  • Author : rpe
    Date : 2018-01-11 19:27:01
    Hash : 9a8b5ccd
    Message : Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d daemon scripts and bump subpackages that contain the *.rc scripts. discussed with and OK aja@ OK tb

  • sysutils/nut/pkg/upsmon.rc
  • #!/bin/ksh
    #
    # $OpenBSD: upsmon.rc,v 1.2 2018/01/11 19:27:10 rpe Exp $
    
    daemon="${TRUEPREFIX}/sbin/upsmon"
    
    . /etc/rc.d/rc.subr
    
    rc_reload() {
    	${daemon} -c reload
    }
    
    rc_stop() {
    	${daemon} -c stop
    }
    
    rc_cmd $1