Skip to content

Commit

Permalink
skel: minor improvements to example configuration for needrestart
Browse files Browse the repository at this point in the history
Modification:

Properly anchor the regular expression and escape the `@` which Perl may
interpret as variable when followed by a valid identifier.

Target: master
Requires-notes: no
Requires-book: no

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
  • Loading branch information
calestyo committed Jan 26, 2022
1 parent a623057 commit c0c77a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skel/doc/examples/needrestart/exclude-dcache.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$nrconf{override_rc}{qr(^dcache@.+\.service)} = 0;
$nrconf{override_rc}{qr(^dcache\@.+\.service$)} = 0;
2 changes: 1 addition & 1 deletion skel/doc/examples/needrestart/exclude-postgresql.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$nrconf{override_rc}{qr(^postgresql@.+\.service)} = 0;
$nrconf{override_rc}{qr(^postgresql\@.+\.service$)} = 0;

0 comments on commit c0c77a2

Please sign in to comment.