]> git.ipfire.org Git - ipfire-2.x.git/commit
services.cgi: add restart action and restrict action usage
authorRobin Roevens <robin.roevens@disroot.org>
Tue, 11 Oct 2022 22:01:56 +0000 (00:01 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 29 Oct 2022 08:56:48 +0000 (08:56 +0000)
commit4f205b54422afa069dd3956ebc4df2efe8600f75
treef9ccdc4d23e8a27bea771aefc280f5823beeb1d5
parent207ca1141c1e1b1b2d384b82ac6b8238ad8d566c
services.cgi: add restart action and restrict action usage

* Add restart action to services.
* Only display available actions for a service:
  Start when service is stopped or Stop and Restart when a service
  is running.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/services.cgi