 |
 |
 |
 |
| Programming & Packaging A place to discuss programming and packaging. |

17th June 2012, 01:29 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
rpm creation and systemd problem
hi,
i am trying to build a new rpm package for fedora 17, i have already created a package review
However, I cant interpret the systemd error messages.
Code:
[root@fc17-64 tmp]# systemctl enable tntnet.service
ln -s '/usr/lib/systemd/system/tntnet.service' '/etc/systemd/system/multi-user.target.wants/tntnet.service'
Code:
[root@fc17-64 tmp]# systemctl start tntnet.service
Job failed. See system journal and 'systemctl status' for details.
Code:
[root@fc17-64 tmp]# systemctl status tntnet.service
tntnet.service - tntnet web application server
Loaded: loaded (/usr/lib/systemd/system/tntnet.service; enabled)
Active: failed (Result: timeout) since Sun, 17 Jun 2012 14:07:14 +0200; 2min 12s ago
Process: 2475 ExecStart=/usr/bin/tntnet (code=killed, signal=TERM)
CGroup: name=systemd:/system/tntnet.service
Jun 17 14:05:44 fc17-64 tntnet[2475]: tntnet 2.1
Jun 17 14:05:44 fc17-64 tntnet[2475]: unknown group www-data
any hint ?
|

17th June 2012, 01:34 PM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929

|
|
|
Re: rpm creation and systemd problem
Quote:
|
Jun 17 14:05:44 fc17-64 tntnet[2475]: unknown group www-data
|
There's your hint right there.
|

19th June 2012, 07:05 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
Re: rpm creation and systemd problem
Quote:
Originally Posted by pete_1967
There's your hint right there.
|
ok,
after adding a new group www-data an adding my user name to the group, service starts and a status is displayed.
Code:
usermod -a -G www-data martin
Code:
martin@fc17 tmp$ systemctl start tntnet.service
Code:
martin@fc17 tmp$ systemctl status tntnet.service
Quote:
tntnet.service - tntnet web application server
Loaded: loaded (/usr/lib/systemd/system/tntnet.service; enabled)
Active: active (running) since Tue, 19 Jun 2012 20:15:49 +0200
Process: 580 ExecStart=/usr/bin/tntnet (code=exited, status=0/SUCCESS)
Main PID: 587 (tntnet)
CGroup: name=systemd:/system/tntnet.service
├ 586 /usr/bin/tntnet
└ 587 /usr/bin/tntnet
|
I only need a reviewer for the bug review.
Last edited by TheBigRed; 19th June 2012 at 10:01 PM.
|

20th June 2012, 12:11 AM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929

|
|
|
Re: rpm creation and systemd problem
Who are you building this package? If it's for Red Hat/ Fedora, there is never a group called www-data, Apache runs as apache:apache. www-data is used in Debian (and derivatives) for Apache.
|

20th June 2012, 09:11 AM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
Re: rpm creation and systemd problem
Quote:
Originally Posted by pete_1967
Who are you building this package? If it's for Red Hat/ Fedora, there is never a group called www-data, Apache runs as apache:apache. www-data is used in Debian (and derivatives) for Apache.
|
i am tried to build a new rpm package for fedora 17, i have already created a package review
the contens of the orignial tntnet.conf.in looks like this:
Code:
Daemon 1
User www-data
Group www-data
CompPath @libdir@/tntnet
this means, i must change the User and Group in tntnet.conf.in ?
|

20th June 2012, 09:51 AM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929

|
|
|
Re: rpm creation and systemd problem
Quote:
Originally Posted by TheBigRed
this means, i must change the User and Group in tntnet.conf.in ?
|
If you want it to work on Red Hat/ Fedora, yes you do.
|

20th June 2012, 05:47 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
Re: rpm creation and systemd problem
thanks for reply
|

24th June 2012, 03:43 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
Re: rpm creation and systemd problem
In Fedora Apache uses httpd UID/GID 48 (fixed!) for user/group "Apache". This means, among other things, that files from the httpd package have set appropriate access rights can and are intended only for httpd.
%changelog
* Sun Jun 24 2012 Martin Gansser <linux4martin@gmx.de> - 2.1-8
- removed group and user apache from tntnet.conf
- added own group tntnet to tntnet.conf
- added creation of users and groups in pre section
tntnet.src.rpm
tntnet.spec
review closed package review
Last edited by TheBigRed; 27th July 2012 at 10:43 AM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:57 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|