Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Ship Cat container manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wizards
Ship Cat container manager
Commits
beafab9d
Commit
beafab9d
authored
1 year ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Install systemd service template
parent
73bd3fc3
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
TODO
+0
-1
0 additions, 1 deletion
TODO
debian/kam-shipcat.postinst
+11
-0
11 additions, 0 deletions
debian/kam-shipcat.postinst
debian/kam-shipcat.shc@.service
+20
-0
20 additions, 0 deletions
debian/kam-shipcat.shc@.service
debian/rules
+3
-0
3 additions, 0 deletions
debian/rules
with
34 additions
and
1 deletion
TODO
+
0
−
1
View file @
beafab9d
...
...
@@ -3,5 +3,4 @@
Albireo cleanup:
- prerouting rule
- shc@.service
- containers
This diff is collapsed.
Click to expand it.
debian/kam-shipcat.postinst
0 → 100644
+
11
−
0
View file @
beafab9d
#!/bin/sh
set
-e
# systemd reload is usually added automatically by dh_installsystemd, but our
# package provides only a template unit, which is not detected by DH. Let us do
# it manually.
if
[
"
$1
"
=
"configure"
]
||
[
"
$1
"
=
"abort-upgrade"
]
||
[
"
$1
"
=
"abort-deconfigure"
]
||
[
"
$1
"
=
"abort-remove"
]
;
then
if
[
-d
/run/systemd/system
]
;
then
systemctl
--system
daemon-reload
>
/dev/null
||
true
fi
fi
This diff is collapsed.
Click to expand it.
debian/kam-shipcat.shc@.service
0 → 100644
+
20
−
0
View file @
beafab9d
[Unit]
Description
=
Container %i (via shipcat)
Wants
=
network-online.target
After
=
network-online.target
RequiresMountsFor
=
/run/containers/storage
[Service]
Type
=
forking
TimeoutStopSec
=
60
PIDFile
=
%t/shc/%i.pid
ExecStartPre
=
/bin/rm -f %t/shc/%i.pid
ExecStart
=
/usr/bin/podman start %i
ExecStop
=
/usr/bin/podman stop --ignore %i
RuntimeDirectory
=
shc
RuntimeDirectoryPreserve
=
yes
[Install]
WantedBy
=
default.target
This diff is collapsed.
Click to expand it.
debian/rules
+
3
−
0
View file @
beafab9d
...
...
@@ -16,3 +16,6 @@ execute_after_dh_auto_install:
override_dh_fixperms:
dh_fixperms --exclude usr/bin/shc
override_dh_installsystemd:
dh_installsystemd --name shc@ shc@.service
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment