UA3F/ua3f.service
2023-12-08 00:29:34 +08:00

20 lines
384 B
Desktop File
Executable File

#!/bin/sh /etc/rc.common
START=99
start() {
echo "ua3f is starting"
if id -u shellclash >/dev/null 2>&1; then
sudo -u shellclash /root/ua3f >/dev/null 2>&1 &
elif id -u nobody >/dev/null 2>&1; then
sudo -u nobody /root/ua3f >/dev/null 2>&1 &
else
/root/ua3f >/dev/null 2>&1 &
fi
}
stop() {
echo "ua3f is stopping"
killall ua3f
}