init+base: Allow 'Description' fields in service files

This commit is contained in:
apio 2023-07-12 19:46:53 +02:00
parent 95cce6d592
commit 6c3ab3b27d
Signed by: apio
GPG Key ID: B8A7D06E42258954
4 changed files with 10 additions and 1 deletions

View File

@ -154,6 +154,12 @@ static Result<void> load_service(const os::Path& path)
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 (!service.command.is_empty())

View File

@ -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
Wait=true

View File

@ -1,3 +1,4 @@
Name=motd
Description=Show the message of the day to the user.
Command=/usr/bin/cat /etc/motd
Wait=true

View File

@ -1,3 +1,4 @@
Name=login
Description=Start the command-line login program.
Command=/usr/bin/login
Restart=true