Skip to content

Commit

Permalink
Add systemd unit
Browse files Browse the repository at this point in the history
  • Loading branch information
sysrich committed Mar 26, 2024
1 parent b5cf105 commit d4f8216
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions usr/lib/systemd/system/tik.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Copyright 2024 SUSE LLC

[Unit]
Description=tik - Transactional Installation Kit

After=local-fs.target plymouth-start.service
Conflicts=plymouth-start.service
Before[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
Before=display-manager.service
OnSuccess=reboot.target
OnFailure=poweroff.target

Before=systemd-user-sessions.service
# For NM it uses nmcli, so NM needs to be running
After=NetworkManager.service

[Service]
Type=oneshot
Environment=TERM=linux
RemainAfterExit=yes
ExecStartPre=/bin/sh -c "/usr/bin/plymouth quit 2>/dev/null || :"
ExecStart=/usr/sbin/tik
StandardOutput=tty
StandardInput=tty
#StandardError=tty
# enable accessing global keyring to get data from eg. initrd
KeyringMode=shared

[Install]
WantedBy=default.target

0 comments on commit d4f8216

Please sign in to comment.