| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | CONFIG=/etc/dcmtk/dcmqrscp.cfg |
| 4 | |
| 5 | depend() { |
| 6 | need net |
| 7 | } |
| 8 | |
| 9 | start() { |
| 10 | ebegin "Starting DCMTK central test node dcmqrscp" |
| 11 | start-stop-daemon --start --quiet --background \ |
| 12 | --make-pidfile --pidfile "/var/run/${SVCNAME}.pid" \ |
| 13 | --exec /usr/bin/dcmqrscp -- -c "${CONFIG}" |
| 14 | eend ${?} |
| 15 | } |
| 16 | |
| 17 | stop() { |
| 18 | ebegin "Stopping DCMTK central test node dcmqrscp" |
| 19 | start-stop-daemon --stop --quiet --pidfile "/var/run/${SVCNAME}.pid" |
| 20 | eend ${?} |
| 21 | } |