Commit 8dd8d538 authored by Pavel Shilovsky's avatar Pavel Shilovsky

Add systemd support

parent 9bbd26d4
......@@ -204,6 +204,7 @@ EOF
mkdir -p %buildroot%_initdir/
install -m755 %name %buildroot%_initdir/
install -D -m644 %name.service %buildroot%_unitdir/%name.service
install -m755 %name.outformat %buildroot%_datadir/%name
%define etercifs_src %_datadir/%name/sources
......@@ -334,6 +335,7 @@ ln -s ../../../../%etercifs_src/%src_package_name-3.3-%src_3_3_version.tar.bz2 \
%doc README.ETER AUTHORS CHANGES README TODO
%_bindir/etermount
%_initrddir/%name
%_unitdir/%name.service
%config %_sysconfigdir/%name.conf
%config %_sysconfdir/modprobe.d/etersoft.conf
%_datadir/%name/
......
[Unit]
Description=etercifs CIFS support for Linux kernel
After=syslog.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/rc.d/init.d/etercifs start
ExecStop=/etc/rc.d/init.d/etercifs stop
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment