Anyone have syslog-ng rc.d startup script?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Anyone have syslog-ng rc.d startup script?

Postby billbert » Fri Apr 05, 2013 12:55 pm

Thanks if you can help.
I've done a bit of googling on upgrading to systemd, but am afraid I'll break the whole system.
If anyone can help, great! Thanks!
billbert
 
Posts: 2
Joined: Fri Apr 05, 2013 12:51 pm

Re: Anyone have syslog-ng rc.d startup script?

Postby graysky » Fri Apr 05, 2013 1:52 pm

Did you look back in the git history for the PKGBUILD of interest? Ah, the power of git.

Alternatively, browse the ARM (not Arch ARM but the A.R.M. = Arch Rollback Machine --> http://arm.konnichi.com/).
graysky
Developer
 
Posts: 1893
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Anyone have syslog-ng rc.d startup script?

Postby billbert » Fri Apr 05, 2013 2:03 pm

you rockstar :)
I must be having an acronym breakdown
thanks brother.

on an aside, do you have any tips on getting up and running with systemd on arm?
billbert
 
Posts: 2
Joined: Fri Apr 05, 2013 12:51 pm

Re: Anyone have syslog-ng rc.d startup script?

Postby graysky » Fri Apr 05, 2013 2:11 pm

Should be no different than on i686 or x86_64 in principal.
https://wiki.archlinux.org/index.php/Systemd

My personal policy is to backup the system before doing something major.

1) Boot to a live environment or to a linux workstation.
2) Mount your SD card and tar it up.
graysky
Developer
 
Posts: 1893
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Anyone have syslog-ng rc.d startup script?

Postby chat1410 » Tue Apr 09, 2013 4:28 am

This may be outdated now but I just noticed my Pogoplug hasn't been logging all weekend. :oops: Here's the syslog-ng rc.d file I pulled from a very old backup (December 2012). I didn't notice the problem until I rebooted my Pogoplug last Friday. Having not looked at the changelog notes on syslog-ng and just going off of my pacman log, I suspect the 3.4.1-2 update removed the initscript.

$this->bbcode_second_pass_code('', '#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/syslog-ng

checkconfig() {
if ! syslog-ng -s "${SYSLOG_NG_CHECKOPTS[@]}"; then
stat_fail
exit 1
fi
}

pidfile=/run/syslog-ng.pid
if [[ -r $pidfile ]]; then
read -r PID < "$pidfile"
if [[ $PID && ! -d /proc/$PID ]]; then
# stale pidfile
unset PID
rm -f "$pidfile"
fi
fi

case $1 in
start)
stat_busy "Starting Syslog-NG"
checkconfig
if [[ -z $PID ]] && /usr/sbin/syslog-ng "${SYSLOG_NG_OPTS[@]}"; then
add_daemon syslog-ng
stat_done
else
stat_fail
exit 1
fi
;;
stop)
stat_busy "Stopping Syslog-NG"
if [[ $PID ]] && kill $PID &>/dev/null; then
rm_daemon syslog-ng
stat_done
else
stat_fail
exit 1
fi
;;
reload)
stat_busy "Reloading Syslog-NG configuration and re-opening log files"
if [[ -z $PID ]]; then
stat_fail
else
checkconfig
if kill -HUP $PID &>/dev/null; then
stat_done
else
stat_fail
exit 1
fi
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart|reload}"
esac')
chat1410
 
Posts: 28
Joined: Thu Nov 01, 2012 5:55 pm

Re: Anyone have syslog-ng rc.d startup script?

Postby moonman » Tue Apr 09, 2013 4:29 am

systemd uses journalctrl afaik, but you can use both at the same time: https://wiki.archlinux.org/index.php/Sy ... ith_syslog
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Anyone have syslog-ng rc.d startup script?

Postby chat1410 » Tue Apr 09, 2013 4:42 am

I simply searched the forums for "syslog-ng rc.d" seeing if anyone had posted the script before I went digging through backups. I have a Pogoplug v3 (and thus I'm in the wrong folder). The version of Arch we're running can not be upgraded to the 3.* Linux kernel, thus we can not run systemd with any form of stability.

I appreciate the knowledge however. :)
chat1410
 
Posts: 28
Joined: Thu Nov 01, 2012 5:55 pm

Re: Anyone have syslog-ng rc.d startup script?

Postby moonman » Tue Apr 09, 2013 4:48 am

Yes I am aware of the V3 problems. Just thought since you posted it this section it was a V2. Generally, you can find rc.d scripts in the git history of packages: https://projects.archlinux.org/svntogit ... 8b4540b84e and more specifically https://projects.archlinux.org/svntogit ... a0811ffbfa
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests