init+base: Allow 'Description' fields in service files
This commit is contained in:
parent
95cce6d592
commit
6c3ab3b27d
@ -154,6 +154,12 @@ static Result<void> load_service(const os::Path& path)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parts[0].view() == "Description")
|
||||||
|
{
|
||||||
|
// We let users specify this in the config file, but init doesn't actually use it.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (parts[0].view() == "Command")
|
if (parts[0].view() == "Command")
|
||||||
{
|
{
|
||||||
if (!service.command.is_empty())
|
if (!service.command.is_empty())
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
Name=home
|
Name=mount-home
|
||||||
|
Description=Mount the user's home directory on a writable filesystem.
|
||||||
Script=/etc/startup/selene-home.sh
|
Script=/etc/startup/selene-home.sh
|
||||||
Wait=true
|
Wait=true
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
Name=motd
|
Name=motd
|
||||||
|
Description=Show the message of the day to the user.
|
||||||
Command=/usr/bin/cat /etc/motd
|
Command=/usr/bin/cat /etc/motd
|
||||||
Wait=true
|
Wait=true
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
Name=login
|
Name=login
|
||||||
|
Description=Start the command-line login program.
|
||||||
Command=/usr/bin/login
|
Command=/usr/bin/login
|
||||||
Restart=true
|
Restart=true
|
||||||
|
Loading…
Reference in New Issue
Block a user