Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
c48988ce
Commit
c48988ce
authored
Sep 30, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: don't start rsyslog if unconfigured
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0b21e8ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
S50syslogd
userspace/rootfs_override/etc/init.d/S50syslogd
+40
-0
inittab
userspace/rootfs_override/etc/inittab
+0
-4
No files found.
userspace/rootfs_override/etc/init.d/S50syslogd
0 → 100755
View file @
c48988ce
#!/bin/sh
start
()
{
# Check the configuration file: if there's no target, don't run the thing.
if
!
grep
-q
'^##.*remote-host'
/etc/rsyslog.conf
;
then
echo
-n
"Starting rsyslog: "
/usr/sbin/rsyslogd
echo
"OK"
else
echo
"Not starting rsyslog: no target host selected"
fi
}
stop
()
{
if
pidof rsyslogd
>
/dev/null
;
then
echo
-n
"Stopping rsyslog: "
start-stop-daemon
-K
-q
-p
/var/log/rsyslog.pid
echo
"OK"
fi
}
restart
()
{
stop
start
}
case
"
$1
"
in
start
)
start
;;
stop
)
stop
;;
restart|reload
)
restart
;;
*
)
echo
$"Usage:
$0
{start|stop|restart}"
exit
1
;;
esac
userspace/rootfs_override/etc/inittab
View file @
c48988ce
...
...
@@ -28,10 +28,6 @@
ttyGS0::respawn:/bin/ash --login
ttyS0::respawn:/bin/ash --login
# Logging junk
null::sysinit:/usr/sbin/rsyslogd
# Stuff to do before rebooting
null::shutdown:/usr/bin/killall rsyslogd
null::shutdown:/bin/umount -a -r
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment