- Jun 29, 2015
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When hal crash, monit will trigger rtud and ppsi to restart. When rtud or ppsi crash, only crashed process will be restarted. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now print: "Configuring external clock clk2: OK|Failed" Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Split start-daemons.sh.in into init scripts for: --HAL --RTUd --PPSI Since HAL, RTUd, PPSI have already waiting for dependent processess implemented, we're allowed to spawn them (semi) simultaneously. Additionally: --Remove start-daemons.sh.in --Remove updating start-daemons.sh.in log values in apply_dot-config --Create links in /etc/rcS/ to init scripts NOTE: Be sure that no init script has the same name as running program. It may cause problems for "pidof". Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add simple wrapper for monit to print which process caused monit to trigger restart. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Distinguish between start-stop-daemon return value 0, 1 and the rest for start. Check start-stop-daemon return value for stop. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use start-stop-daemon to start/stop syslogd daemon. Distinguish between start-stop-daemon return value 0, 1 and the rest. Fix syslog's pid filename (was /var/log/rsyslog.pid now is /var/run/rsyslogd.pid). Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use start-stop-daemon to start/stop snmpd daemon. Change name of init script from snmp to snmpd. Also rename link from S80snmp to S80snmpd. Rename and update snmpd config for monit. Distinguish between start-stop-daemon return value 0, 1 and the rest. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Fix copy-paste error. Distinguish between start-stop-daemon return value 0, 1 and the rest. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Improve getting scb version in boot scripts
-
Adam Wujek authored
Use wrs_version -s in /wr/sbin/startup-mb.sh to get scb version. Previous method to distinguish scb versions did not work in all cases: mtdinfo -a | grep -A 1 dataflash | grep 264 Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
This parameter will be used by /wr/sbin/startup-mb.sh script to pass scb version to lm32 loader. "-t" parameter cannot be used here because lm32 loader expect version number to be without dots. It is shorter, better, faster, more elegant to put extra parameter "-s" instead of using e.g. sed to parse "-t" output. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Print version at startup of HAL and RTUd. Replace "+" with "--dirty" for version printouts
-
Adam Wujek authored
Print "-dirty" for: --at91boot --startup guide --switch's tools Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It is good to have in logs when and what version of rtud started. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It is good to have in logs when and what version of hal started. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Sometimes we want to print message with high priority without indication that it is error. This is workaround for this problem. For example report program's version. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 26, 2015
-
-
Adam Wujek authored
Unfortunately this is non compatible change, but hopefully noone use SNMP so far. Due to changes in ppsi. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 25, 2015
-
-
Adam Wujek authored
bugfix for commit: c552ec92 serspace/wrsw_rtud: Don't inform about waiting for HAL for 5 seconds I forgot "!" at the beginning of condition Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Alessandro Rubini authored
This commit also fixes the tools that access ppsi's shmem. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jun 24, 2015
-
-
This allows, among other things, to see big jumps happening (if we are slave and the master jumped in time due to user interaction: this is "only" useful during developement, i.e. it *very* useful during development). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
Make rtud and rtu_stat to be able to start in parallel with hal and ppsi. (wait for hal in rtud, wait for hal and rtud in stu_stat) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Since rtud and rtu_stat wait internally for hal and rtud shmem to be available, there is no need to check that in startup script. For the same reason we can remove "sleep 4" before calling rtu_stat. Also there is no need to check whether ppsi binary is available. Such situation will be reported in different ways. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
rtu_stat has to wait for hal and rtud to be ready. It waits for hal's shmem and rtud's minipc connection. There is no need to wait for rtud's shmem since it is initialized before ipc server is available. Additionally few minor changes in printouts. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It may take few seconds to start hal, rtud shouln't complain about it during 5 seconds. Additionally change fprintf into pr_error. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 18, 2015
-
-
Adam Wujek authored
Sometimes it happens at boot that rts_get_state fails. It may be due to race condition with ppsi or something else. Anyway try again when rts_get_state fails. Additionally print message when got timeout from tmo_expired. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Move assert_init macro to libwr/wrs-msg.h --Add printout to assert_init macro to know which function fails. --Remove assert_init macro duplication from rsw_hal/hal_main.c --Remove #include <libwr/shw_io.h> from libwr/shw_io.h (no need to include file from itself) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Also support HAL and PPSI restarts in wr_mon. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Make monit to start from inittab instead of rcS script. Add config files for: --dropbear --lighttpd
-
Adam Wujek authored
We want that monit don't propagate its state over restart. Move monit.stat to /tmp. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally change startup script to use start-stop-daemon Note: start-stop-daemon does not create pid file Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When monit is started from inittab instead of script /etc/init.d/monit.sh it will be respawned after its crash. Support stopping/starting monit by /etc/init.d/monit.sh To stop monit, STOP signal is sent to it. By this, init will not respawn monit, because it is still present in process' list. Add disabling monit in dot-config by option CONFIG_MONIT_DISABLE. When monit is disabled by dot-config, monit.sh will sleep forever, to satisfy init and prevent respawning Update dot-config items in user-manual. Include only *.conf instead of all files from /etc/monit.d/. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add explicit error messages when problems with downloaded dot-config file. Messages added in /etc/init.d/dot-config Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 17, 2015
-
-
Adam Wujek authored
parameters show up as a result of copy-paste error Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-