* Thu Apr 18 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-5.sme
- move service to full systemd unit [SME: 12635]
This commit is contained in:
parent
aaa73c55c2
commit
c509d7acac
@ -69,9 +69,3 @@ safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/lpd"
|
|||||||
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
|
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
|
||||||
event_link("systemd-default", $event, "06");
|
event_link("systemd-default", $event, "06");
|
||||||
|
|
||||||
#--------------------------------------------------
|
|
||||||
# remove for systemd
|
|
||||||
## Make service statup symlinks
|
|
||||||
#safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/lpd");
|
|
||||||
#safe_symlink("/etc/rc.d/init.d/e-smith-service", "root/etc/rc.d/rc7.d/S60lpd");
|
|
||||||
safe_symlink("/var/service/lpd", "root/service/lpd");
|
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=lpd, LPRng print spool
|
Description=lpd, LPRng print spool
|
||||||
After=network.target
|
After=network.target
|
||||||
Requires=runit.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=simple
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
|
TimeoutSec=0
|
||||||
ExecStartPre=/sbin/e-smith/service-status lpd
|
ExecStartPre=/sbin/e-smith/service-status lpd
|
||||||
ExecStart=/usr/bin/sv u /service/lpd
|
ExecStart=/usr/sbin/lpd -F
|
||||||
ExecStop=/usr/bin/sv stop /service/lpd
|
|
||||||
ExecReload=/usr/bin/sv t /service/lpd
|
|
||||||
RemainAfterExit=yes
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sme-server.target
|
WantedBy=sme-server.target
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
exec /usr/sbin/lpd -F
|
|
@ -4,7 +4,7 @@ Summary: smeserver server and gateway - LPRng module
|
|||||||
%define name smeserver-LPRng
|
%define name smeserver-LPRng
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 11.0.0
|
%define version 11.0.0
|
||||||
%define release 4
|
%define release 5
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -25,6 +25,9 @@ smeserver server and gateway software - LPRng module.
|
|||||||
Add printing features, using the LPRng package.
|
Add printing features, using the LPRng package.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 18 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-5.sme
|
||||||
|
- move service to full systemd unit [SME: 12635]
|
||||||
|
|
||||||
* Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-4.sme
|
* Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-4.sme
|
||||||
- Update createlinks to create smeserver-package-update event[SME: 12579]
|
- Update createlinks to create smeserver-package-update event[SME: 12579]
|
||||||
|
|
||||||
@ -598,7 +601,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||||||
rm -f %{name}-%{version}-%{release}-filelist
|
rm -f %{name}-%{version}-%{release}-filelist
|
||||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
||||||
--file /var/service/lpd/run 'attr(0755,root,root)' \
|
|
||||||
> %{name}-%{version}-%{release}-filelist
|
> %{name}-%{version}-%{release}-filelist
|
||||||
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
|
||||||
|
|
||||||
@ -608,5 +610,13 @@ rm -f /etc/lpd.perms
|
|||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# ease the transition between runit and systemd
|
||||||
|
if [ $1 -gt 1 ] ; then
|
||||||
|
if [ -e /var/service/lpd ] ; then
|
||||||
|
/usr/bin/sv d lpd
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
%files -f %{name}-%{version}-%{release}-filelist
|
%files -f %{name}-%{version}-%{release}-filelist
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user