Projet

Général

Profil

Evolution #2454

cat: /backup/jails/www00//run/sshd.pid: No such file or directory

Ajouté par Benoît S. il y a presque 3 ans.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Début:
18/07/2018
Echéance:
% réalisé:

0%


Description

+ DUC=/usr/bin/duc-nox                                                                         
+ mkdir -p /etc/evobackup /backup/jails /backup/incs /backup/index
+ subcommand=start
+ jail=www00
+ option=
+ case "${subcommand}" in
+ '[' -n www00 ']'
+ '[' www00 = all ']'
+ '[' start '!=' restart ']'
+ sub_start www00
+ jail=www00
+ check_jail www00
+ jail=www00
+ '[' -d /backup/jails/www00 ']'
+ return 0
+ check_jail_on www00
+ jail=www00
+ return=1
+ '[' -f /backup/jails/www00//run/sshd.pid ']'
+ '[' 1 -eq 1 ']'
+ rm -f /backup/jails/www00//run/sshd.pid
+ grep -q /backup/jails/www00/proc /proc/mounts
+ umount --lazy /backup/jails/www00/proc/
+ grep -q /backup/jails/www00/dev /proc/mounts
+ umount --lazy --recursive /backup/jails/www00/dev
+ return 1
+ cd /backup/jails/www00
+ grep -q /backup/jails/www00/proc /proc/mounts
+ mount -t proc proc-www00 proc
+ grep -q /backup/jails/www00/dev /proc/mounts
+ mount -nt tmpfs dev-www00 dev
+ '[' -e dev/console ']'
+ mknod -m 622 dev/console c 5 1
+ '[' -e dev/null ']'
+ mknod -m 666 dev/null c 1 3
+ '[' -e dev/zero ']'
+ mknod -m 666 dev/zero c 1 5
+ '[' -e dev/ptmx ']'
+ mknod -m 666 dev/ptmx c 5 2
+ '[' -e dev/tty ']'
+ mknod -m 666 dev/tty c 5 0
+ '[' -e dev/random ']'
+ mknod -m 444 dev/random c 1 8
+ '[' -e dev/urandom ']'
+ mknod -m 444 dev/urandom c 1 9
+ chown root:tty dev/console dev/ptmx dev/tty
+ ln -fs proc/self/fd dev/fd
+ ln -fs proc/self/fd/0 dev/stdin
+ ln -fs proc/self/fd/1 dev/stdout
+ ln -fs proc/self/fd/2 dev/stderr
+ ln -fs proc/kcore dev/core
+ mkdir -p dev/pts
+ mkdir -p dev/shm
+ grep -q /backup/jails/www00/dev/pts /proc/mounts
+ mount -t devpts -o gid=4,mode=620 none dev/pts
+ grep -q /backup/jails/www00/dev/shm /proc/mounts
+ mount -t tmpfs none dev/shm
+ chroot /backup/jails/www00 /usr/sbin/sshd -E /var/log/authlog
++ cat /backup/jails/www00//run/sshd.pid
cat: /backup/jails/www00//run/sshd.pid: No such file or directory
+ pid=
+ notice 'www00 was started []'
+ msg='www00 was started []'
+ tty -s
+ echo 'www00 was started []'
www00 was started []
+ '[' 6 -ge 5 ']'
+ logger -t bkctld -p daemon.notice 'www00 was started []'

Il manque de vérifier le code de sortie ?
ou de fail/exit si ! -f /backup/jails/www00//run/sshd.pid ?

+ chroot /backup/jails/www00 /usr/sbin/sshd -E /var/log/authlog
++ cat /backup/jails/www00//run/sshd.pid
cat: /backup/jails/www00//run/sshd.pid: No such file or directory
+ pid=

Note : pas grave, mais y'a un / en trop au cat.

Formats disponibles : Atom PDF