pushdeer/push/gorush-with-mipush/src/contrib/init/debian
SinTod ea79289d43 add gorush-with-mipush 2022-02-07 18:48:16 +08:00
..
README.md add gorush-with-mipush 2022-02-07 18:48:16 +08:00
gorush add gorush-with-mipush 2022-02-07 18:48:16 +08:00

README.md

Run gorush in Debian/Ubuntu

Installation

Put gorush binary into /usr/bin folder.

cp gorush /usr/bin/
chmod +x /usr/bin/gorush

put gorush init script into /etc/rc.d

cp contrib/init/debian/gorush /etc.rc.d/

install and remove System-V style init script links

update-rc.d gorush start 20 2 3 4 5 . stop 80 0 1 6 .

Start service

create gorush configuration file.

mkdir -p /etc/gorush
cp config/testdata/config.yml /etc/gorush/

start gorush service.

/etc/init.d/gorush start