Changeset 38208


Ignore:
Timestamp:
2013-09-26T14:50:25+02:00 (4 years ago)
Author:
tripolar
Message:

[packages] ntpd: switch to new procd init script style

Signed-off-by: Peter Wagner <tripolar@…>

File:
1 edited

Legend:

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

    r29127 r38208  
    55STOP=65 
    66 
    7 SERVICE_USE_PID=1 
     7USE_PROCD=1 
    88 
    9 start() { 
     9start_service() { 
    1010#       ln -sf /dev/ttyS0 /dev/gps0 
    1111#       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf 
     
    1414        mkdir -p /var/lib/ntp 
    1515        chown -R ntp:ntp /var/lib/ntp 
    16         service_start /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid 
     16 
     17        procd_open_instance 
     18        procd_set_param command /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid -n 
     19        procd_close_instance 
    1720} 
    18  
    19 stop() { 
    20         service_stop /sbin/ntpd 
    21 } 
Note: See TracChangeset for help on using the changeset viewer.