mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-10 23:20:12 +08:00
Some checks are pending
RPM/DEB build aarch64 / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
RPM/DEB build armhf / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
RPM/DEB build x86-64 / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
Build Win32 3proxy-lite with Watcom / ${{ matrix.target }} (windows-2022) (push) Waiting to run
Build Win32 3proxy with MSVC / ${{ matrix.target }} (windows-2022) (push) Waiting to run
Build Win64 3proxy with MSVC / ${{ matrix.target }} (windows-2022) (push) Waiting to run
Build Win-arm64 3proxy with MSVC / ${{ matrix.target }} (windows-2022) (push) Waiting to run
30 lines
916 B
Plaintext
30 lines
916 B
Plaintext
if /bin/systemctl >/dev/null 2>&1; then \
|
|
/usr/sbin/update-rc.d 3proxy disable || true; \
|
|
/usr/sbin/chkconfig 3proxy off || true; \
|
|
/bin/systemctl enable 3proxy.service; \
|
|
elif [ -x /usr/sbin/update-rc.d ]; then \
|
|
/usr/sbin/update-rc.d 3proxy defaults; \
|
|
/usr/sbin/update-rc.d 3proxy enable; \
|
|
elif [ -x /usr/sbin/chkconfig ]; then \
|
|
/usr/sbin/chkconfig 3proxy on; \
|
|
fi
|
|
|
|
echo ""
|
|
echo 3proxy installed.
|
|
if /bin/systemctl >/dev/null 2>&1; then \
|
|
/bin/systemctl stop 3proxy.service ;\
|
|
/bin/systemctl start 3proxy.service ;\
|
|
echo use ;\
|
|
echo " "systemctl start 3proxy.service ;\
|
|
echo to start proxy ;\
|
|
echo " "systemctl stop 3proxy.service ;\
|
|
echo to stop proxy ;\
|
|
elif [ -x /usr/sbin/service ]; then \
|
|
/usr/sbin/service 3proxy stop || true;\
|
|
/usr/sbin/service 3proxy start || true;\
|
|
echo " "service 3proxy start ;\
|
|
echo to start proxy ;\
|
|
echo " "service 3proxy stop ;\
|
|
echo to stop proxy ;\
|
|
fi
|