Update README.md/intall instructions for systemd and new local bin path.
This commit is contained in:
parent
286690f94e
commit
a8b604a900
14
README.md
14
README.md
|
@ -8,9 +8,13 @@ See https://gitea.evolix.org/evolix/minifirewall
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
install --mode 0700 minifirewall /etc/init.d/minifirewall
|
install --mode 0700 minifirewall /usr/local/sbin/
|
||||||
|
install --mode 0700 init.sh /etc/init.d/minifirewall
|
||||||
install --mode 0600 minifirewall.conf /etc/default/minifirewall
|
install --mode 0600 minifirewall.conf /etc/default/minifirewall
|
||||||
mkdir --mode 0700 /etc/minifirewall.d
|
mkdir --mode 0700 /etc/minifirewall.d
|
||||||
|
|
||||||
|
install --mode 0644 minifirewall.service /etc/systemd/system/minifirewall.service
|
||||||
|
systemctl daemon-reload
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
@ -37,11 +41,17 @@ you need to use the port used by the container (ie: 8080) in the public/semi-pub
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
~~~
|
||||||
|
systemctl start/stop/restart minifirewall
|
||||||
|
minifirewall status
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Formerly :
|
||||||
~~~
|
~~~
|
||||||
/etc/init.d/minifirewall start/stop/restart
|
/etc/init.d/minifirewall start/stop/restart
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
If you want to add minifirewall in boot sequence, add the start command to `/usr/share/scripts/alert5`.
|
If you want to add minifirewall in SysV Init boot sequence, add the start command to `/usr/share/scripts/alert5`.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue