forked from pool/bitlbee
d4b65a63c4
Hi bitlbee can be run ad deamon now ! for security reason its run as user bitlbee. here is a full list of changes i did there: - Added init.d and systemd to be able run the bitlbee as standard service. - Rc$service script is runnig as symlink for systemd and init.d. - Improved way how user bitlbee is add into system via rpm. - Fixed warning about wrong license: its still "GNU General Public License version 2 (GPL v2)" but osc marks it via shorcut : GPL-2.0+ - The PID directory is /var/run/bitlbee/ or /run/bitlbee/ depends on the version. - The PID directory is created via systemd or initd script, bacuse its in tmpfs. - Each BuildRequires is on one line to avoid duplicate packages. - Removed if for SLES9 - not need any more - Run spec-clean on the spec file and fixed a small bug is spec file after clearing no "fixme" any more there. ps : the warning bitlbee.x86_64: W: call-to-mktemp /usr/sbin/bitlbee need to be patch in future, however my C skills are very low .... OBS-URL: https://build.opensuse.org/request/show/238043 OBS-URL: https://build.opensuse.org/package/show/server:irc/bitlbee?expand=0&rev=23
30 lines
628 B
Plaintext
30 lines
628 B
Plaintext
# Copyright (c) 1995-2014 SUSE Linux AG, Nuernberg, Germany.
|
|
# All rights reserved.
|
|
#
|
|
# Author: Martin Caj <mcaj@suse.cz>
|
|
#
|
|
# /usr/lib/systemd/system/bitlbee-server.service
|
|
#
|
|
# and it's symbolic link
|
|
#
|
|
# /usr/sbin/rcbitlbee
|
|
|
|
[Unit]
|
|
Description=Bitblee Daemonm the IM to IRC gateway
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStartPre=/usr/bin/mkdir -p /run/bitlbee
|
|
ExecStartPre=/usr/bin/chown bitlbee.bitlbee /run/bitlbee
|
|
ExecStart=/usr/sbin/bitlbee
|
|
PIDFile=/var/run/bitlbee/bitlbee.pid
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=always
|
|
User=bitlbee
|
|
Group=bitlbee
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|