mirror of
https://github.com/troglobit/finit.git
synced 2026-10-21 11:29:42 +00:00
Fix #186: allow continuation character in .conf files
This change makes it possible to use the standard continuation character
in .conf files. For example:
service [23456] \
log:stderr \
<!pid/foo> \
bar \
-- This is the bar service, it depends on foo # comment that's dropped
Notice the additional support for comments on .conf lines. If you use
the comment character today you must change to escape it. Like this:
service :2 foo -- Foo \#2
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
f217794773
commit
9046b6fe2b
7 files changed
+85
-30
No files matched your search
@@ -37,9 +37,9 @@ test_add_one()
|
||||
|
||||
test_init
|
||||
|
||||
test_add_one "task manual:yes name:foo :1 serv -- Foo #1"
|
||||
test_add_one "task manual:yes name:foo :2 serv -- Foo #2"
|
||||
test_add_one "task manual:yes name:foo :3 serv -- Foo #3"
|
||||
test_add_one "task manual:yes name:foo :1 serv -- Foo \#1"
|
||||
test_add_one "task manual:yes name:foo :2 serv -- Foo \#2"
|
||||
test_add_one "task manual:yes name:foo :3 serv -- Foo \#3"
|
||||
test_add_one "task manual:yes name:foobar serv -- Foobar"
|
||||
|
||||
say 'Reload Finit'
|
||||
|
||||
Reference in new issue
Block a user