Archives par mot-clé : server

Trucs et astuces pour Windows server

Installer NFS

En ligne de commande powershell:

ServerManagerCmd -install File-Services FS-NFS-Services

ou

Ocsetup ServicesForNFS-ServerAndClient;ServerForNFS-Infrastructure;NFS-Administration;ClientForNFS-Infrastructure

Automatiser l’initialisation du chroot debian sur un Synology DS210+

Pré requis: DSM 3.X

But

Automatiser l’initialisation du chroot debian sur un Synology DS210+.
Ce système fut précédemment réalisé avec ce tutorial.

Etapes

Dans un nouveau répertoire du /volume1, créez le script S91InitDebian.sh suivant:

#!/bin/sh
#

SynoStop=/usr/bin/killall

case $1 in
start)
        echo "Mount debian ..."
        mount -o bind /volume1/@debian /opt/debian
        mount -o bind /dev /opt/debian/chrootgnuspe/dev
        mount -o bind /proc /opt/debian/chrootgnuspe/proc
   ;;
stop)
   #$SynoStop tracd > /dev/null 2>&1
   ;;
#restart)
#   $0 stop
#   $0 start
#   ;;
*)
   echo "Usages: $0 [start|stop]"
   ;;
esac

ajouter le script au répertoire rc.d du nas Synology:

NAS> ln -s yourVolume1Rc.dScript/S93MavenProxy.sh /usr/syno/etc.defaults/rc.d/

TODO

supporter le stop et restart du script de service.