Compare commits

...

2 Commits

Author SHA1 Message Date
78ea5dc352
base: Rename selene-home.sh to mount-home.sh
All checks were successful
continuous-integration/drone/push Build is passing
This makes its purpose clearer.
2023-07-12 19:47:45 +02:00
6c3ab3b27d
init+base: Allow 'Description' fields in service files 2023-07-12 19:46:53 +02:00
5 changed files with 11 additions and 2 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
Script=/etc/startup/selene-home.sh
Name=mount-home
Description=Mount the user's home directory on a writable filesystem.
Script=/etc/startup/mount-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