move tftp_server to systemd (#583)

This commit is contained in:
Adeeb Shihadeh
2026-05-03 15:26:33 -07:00
committed by GitHub
parent a765dc1759
commit 0c6220b253
7 changed files with 13 additions and 44 deletions
-40
View File
@@ -1,40 +0,0 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: Qualcomm.com
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: tftp server
# Description: tftp server dasmon
### END INIT INFO
# Copyright (c) 2014 Qualcomm Technologies, Inc. All Rights Reserved.
# Qualcomm Technologies Proprietary and Confidential.
set -e
case "$1" in
start)
echo -n "Starting tftp_server: "
while [ ! -e /data/persist/rfs ] ; do sleep 0.1; done
start-stop-daemon -S -b -x /sbin/tftp_server
echo "done"
;;
stop)
echo -n "Stopping tftp_server: "
start-stop-daemon -K -n tftp_server
echo "done"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage tftp_server { start | stop | restart}" >&2
exit 1
;;
esac
exit 0
@@ -1 +0,0 @@
../init.d/tftp_server.sh
@@ -1 +0,0 @@
../init.d/tftp_server.sh
@@ -1 +0,0 @@
../init.d/tftp_server.sh
@@ -1 +0,0 @@
../init.d/tftp_server.sh
@@ -0,0 +1,12 @@
[Unit]
Description=Qualcomm TFTP server
After=fs_setup.service
[Service]
Type=simple
ExecStartPre=/bin/sh -c 'while [ ! -e /data/persist/rfs ]; do sleep 0.1; done'
ExecStart=/usr/sbin/tftp_server
Restart=on-failure
[Install]
WantedBy=multi-user.target
+1
View File
@@ -22,6 +22,7 @@ systemctl enable logrotate-hourly.timer
systemctl enable avahi-daemon
systemctl enable avahi-ssh-publish.service
systemctl enable screen_calibration.service
systemctl enable tftp_server.service
# Disable SSH by default
systemctl disable ssh