Changeset 28881


Ignore:
Timestamp:
2011-11-09T17:40:17+01:00 (6 years ago)
Author:
tripolar
Message:

[packages] ntpd: use new service wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ntpd/files/ntpd.init

    r28572 r28881  
    44START=65 
    55 
    6 PIDFILE="/var/run/ntpd.pid" 
     6SERVICE_WRITE_PID=1 
     7SERVICE_DAEMONIZE=1 
    78 
    89start() { 
    910#       ln -sf /dev/ttyS0 /dev/gps0 
    1011#       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf 
    11         stop 
    12         /sbin/ntpd -g -p $PIDFILE 
     12        service_start /sbin/ntpd -g -n 
    1313} 
    1414 
    1515stop() { 
    16         [ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null 
     16        service_stop /sbin/ntpd 
    1717} 
Note: See TracChangeset for help on using the changeset viewer.