Alfred neu starten
Aus Wiki Freifunk-3Ländereck
Version vom 29. März 2015, 06:27 Uhr von Kpanic (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Momentan scheinen sich Probleme mit der Knotenkarte zu häufen, die wohl daher rühren, dass alfred sich auf einzelnen Routern aufhängt. Um dieses Problem…“)
Momentan scheinen sich Probleme mit der Knotenkarte zu häufen, die wohl daher rühren, dass alfred sich auf einzelnen Routern aufhängt. Um dieses Problem zu umschiffen kann man einen Cronjob einrichten, der stündlich alfred neu startet. Dazu geht man wie folgt vor. Man logge sich per SSH als root auf seinem Knoten ein:
david@lattituede:~$ ssh root@fe80::da5d:4cff:fe9e:9566%wlan0 root@fe80::da5d:4cff:fe9e:9566%wlan0's password: BusyBox v1.22.1 (2015-03-20 18:04:54 CET) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- BARRIER BREAKER (Barrier Breaker, r43483) ----------------------------------------------------- * 1/2 oz Galliano Pour all ingredients into * 4 oz cold Coffee an irish coffee mug filled * 1 1/2 oz Dark Rum with crushed ice. Stir. * 2 tsp. Creme de Cacao ----------------------------------------------------- root@freifunk-kpanic01:~#
Nun kann man alfred von Hand neu starten:
root@freifunk-kpanic01:~# /etc/init.d/alfred restart /etc/init.d/alfred: starting alfred /etc/init.d/alfred: starting batadv-vis root@freifunk-kpanic01:~#
Oder man automatisiert das ganze:
root@freifunk-kpanic01:~# echo 0 * * * * root /etc/init.d/alfred restart >>/etc/crontabs/root root@freifunk-kpanic01:~#
alfred wird nun zu jeder vollen Stunde neugestartet.