#0x2525
Linux debian-2gb-nbg1 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
  SOFT : Apache/2.4.62 (Debian) PHP : 8.2.28
/lib/runit-helper/
162.55.61.15

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
runit-helper 5.822 KB -rwxr-xr-x 2022-08-01 22:48 R E G D
REQUEST EXIT
#!/bin/sh # Copyright (C) 2017 Dmitry Bogatov # Author: Dmitry Bogatov # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 3 # of the License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . set -e # rescan and invoke-rc.d actions are done only if runit is init is_runit () { [ -f /run/runit.stopit ] } is_installed () { [ -f /sbin/runit ] } # No-Op if the service is not enabled # sv can't send signals to a disabled service is_enabled () { [ -h /etc/service/"$NAME" ] } sv_warn () { echo "warning: sv: failed to signal $NAME" true } # workaround for races as in #919296 ok_pipe () { [ -p "/etc/sv/$NAME/supervise/ok" ] } postinst () { local action="${1}" previous="${2:-}" # create supervise links at runtime, only if runit is installed mkdir -p /run/runit/supervise if [ -e /lib/runit/make_svlinks ]; then /lib/runit/make_svlinks "$NAME" fi # loguser transition: to be removed when the transition is done # we do ths before enable to avoid races # old loguser is 'runit-log', new is '_runit-log' # 'current' and 'lock' files in the run directory must be owned by # the new loguser if [ "${ENABLE}" = yes ] && \ [ -f "/var/log/runit/$NAME/current" ] ; then loguser="$(stat --format '%U' /var/log/runit/$NAME/current)" if [ "${loguser}" = "runit-log" ]; then sv d "/etc/sv/$NAME/log" >/dev/null || true chown _runit-log:adm /var/log/runit/$NAME/current chown _runit-log:adm /var/log/runit/$NAME/lock fi fi # It is important to not override local admin # decision (see #899242 and 942323 ). if [ "${ENABLE}" = yes ] && \ [ ! -h "/etc/runit/runsvdir/default/.$NAME" ] ; then #