Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorial: Update systemd user example docs #458

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions modules/ROOT/pages/tutorial-user-systemd-unit-on-boot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ storage:
hard: false
----

And finally we setup lingering for the systemd user level instance so that it gets started directly on boot and stays running:
We set up lingering for the systemd user level instance so that it gets started directly on boot and stays running:

[source,yaml]
----
Expand All @@ -80,6 +80,14 @@ storage:
mode: 0644
----

The directories
travier marked this conversation as resolved.
Show resolved Hide resolved

* _/home/sleeper/.config_
travier marked this conversation as resolved.
Show resolved Hide resolved
* _/home/sleeper/.config/systemd_
travier marked this conversation as resolved.
Show resolved Hide resolved
* _/home/sleeper/.config/systemd/user_
travier marked this conversation as resolved.
Show resolved Hide resolved

travier marked this conversation as resolved.
Show resolved Hide resolved
do not exist so they need to be created.
travier marked this conversation as resolved.
Show resolved Hide resolved

travier marked this conversation as resolved.
Show resolved Hide resolved
== Writing the Butane config and converting to Ignition

The final Butane config, stored in `user.bu`, will be:
Expand All @@ -96,8 +104,26 @@ passwd:
- name: sleeper
storage:
directories:
- path: /home/sleeper/.config
mode: 0755
user:
name: sleeper
group:
name: sleeper
- path: /home/sleeper/.config/systemd
mode: 0755
user:
name: sleeper
group:
name: sleeper
- path: /home/sleeper/.config/systemd/user
mode: 0755
user:
name: sleeper
group:
name: sleeper
- path: /home/sleeper/.config/systemd/user/default.target.wants
mode: 0744
mode: 0755
user:
name: sleeper
group:
Expand All @@ -106,7 +132,7 @@ storage:
- path: /var/lib/systemd/linger/sleeper
mode: 0644
- path: /home/sleeper/.config/systemd/user/linger-example.service
mode: 0755
mode: 0644
contents:
inline: |
[Unit]
Expand Down