Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions service-script-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use them.

Extra functions can be added easily:

```
```sh
extra_commands="checkconfig"
checkconfig() {
doSomething
Expand All @@ -58,7 +58,7 @@ restart is internally mapped to `stop()` + `start()` (plus handling dependencies
If a service needs to behave differently when it is being restarted vs
started or stopped, it should test the `$RC_CMD` variable, for example:

```
```sh
[ "$RC_CMD" = restart ] && do_something
```

Expand Down
Loading