• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/busybox/S01logging
Nicolas CavallariNicolas Cavallari committed cc2ded05bd507 Mar 2016
Raw file
Source viewDiff to previous
 
1
#!/bin/sh
2
#
3
# Start logging
4
#
5
​
6
SYSLOGD_ARGS=-n
7
KLOGD_ARGS=-n
8
[ -r /etc/default/logging ] && . /etc/default/logging
9
​
10
start() {
11
    printf "Starting logging: "
12
    start-stop-daemon -b -S -q -m -p /var/run/syslogd.pid --exec /sbin/syslogd -- $SYSLOGD_ARGS
13
    start-stop-daemon -b -S -q -m -p /var/run/klogd.pid --exec /sbin/klogd -- $KLOGD_ARGS
14
    echo "OK"
15
}
16
​
17
stop() {
18
    printf "Stopping logging: "
19
    start-stop-daemon -K -q -p /var/run/syslogd.pid
20
    start-stop-daemon -K -q -p /var/run/klogd.pid
21
    echo "OK"
22
}
23
​
24
case "$1" in
25
  start)
26
    start
27
    ;;
28
  stop)
29
    stop
30
    ;;
31
  restart|reload)
32
    stop
33
    start
34
    ;;
35
  *)
36
    echo "Usage: $0 {start|stop|restart}"
37
    exit 1
38
esac
39
​
40
exit $?
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.