Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
archutils
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD 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
archlinux
archutils
Commits
38c3d8cb
Commit
38c3d8cb
authored
9 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
Add pacman hook to reload systemd services
parent
3b8ad738
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PKGBUILD
+3
-1
3 additions, 1 deletion
PKGBUILD
systemd-daemon-reload.hook
+12
-0
12 additions, 0 deletions
systemd-daemon-reload.hook
with
15 additions
and
1 deletion
PKGBUILD
+
3
−
1
View file @
38c3d8cb
...
...
@@ -14,7 +14,7 @@ conflicts=('archutils' 'kernel-reinstall')
package
()
{
cd
"
$startdir
"
install
-dm755
"
$pkgdir
"
/usr/
{
share/licenses/
$pkgname
,bin,lib/munin/plugins
}
install
-dm755
"
$pkgdir
"
/usr/
{
share/
{
licenses/
$pkgname
,
libalpm/hooks
}
,
bin,lib/munin/plugins
}
# install legal stuff
install
-m644
COPYRIGHT LICENSE
"
$pkgdir
/usr/share/licenses/
$pkgname
"
# install binaries
...
...
@@ -26,6 +26,8 @@ package() {
# add shortcut, because i'm lazy
ln
-s
checkservices
"
$pkgdir
/usr/bin/cs"
ln
-s
system-upgrade
"
$pkgdir
/usr/bin/sup"
# add hooks
install
-m644
systemd-daemon-reload.hook
"
$pkgdir
/usr/share/libalpm/hooks/10-systemd-daemon-reload.hook"
}
# vim:set ts=2 sw=2 et:
This diff is collapsed.
Click to expand it.
systemd-daemon-reload.hook
0 → 100644
+
12
−
0
View file @
38c3d8cb
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = File
Target = *.service
[Action]
Description = Reload of systemd units
Depends = systemd
When = PostTransaction
Exec = /usr/bin/systemctl daemon-reload
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