LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon
User Name
Password
Sabayon This forum is for the discussion of Sabayon Linux.

Notices


Reply
  Search this Thread
Old 06-15-2013, 01:59 PM   #1
jtwdyp
Member
 
Registered: Apr 2011
Distribution: antiX, Mageia, OpenSUSE, etc... I multi-boot
Posts: 36

Rep: Reputation: 0
new Sabayon 13.04 install: Can't get GPM to start as a service... {systemd}


I've got a newly installed copy of Sabayon_Linux_13.04_amd64_Xfce.iso. And I can start a
volatile GPM session with:

Code:
# gpm -m /dev/input/mice -t ps2
It works like a charm, but it's a PITA to always have to type it into a "root" command shell.

So I checked that /dev/input/mice & ps2 were uncommented in /etc/conf.d/gpm
and used
Code:
rc-update add gpm default
But after rebooting GPM didn't start...

Next I tried:
Code:
/etc/init.d/gpm start
But it just says:
Code:
 * WARNING: gpm is already starting
But it hadn't and doesn't... Then I figured that the problem might have something to do with Sabayon devs phasing in systemd... So I:
Code:
rc-update delete gpm default
to remove gpm from the runlevel based service control and started looking for help wiyh systemd methods. In a thread about changing the default.target, TobiSGD suggested:
Quote:
adding GPM to the current running target is done with
Code:
systemctl enable gpm.service
If you just want to start it without adding it to the current target try
Code:
systemctl start gpm.service
But when I try:
Code:
 /etc
UnderTree=-> systemctl start gpm.service
Failed to issue method call: Unit gpm.service failed to load: No such file or directory. See system logs and 'systemctl status gpm.service' for details.
 /etc
UnderTree=->
At this point I thought what the heck. I've got several examples of what a systemd service file look like. So I thought I'd try to make one...

Quote:
Originally Posted by /usr/lib/systemd/system/gpm.service
Code:
[Unit]
Description=General Purpos Mouse: console mouse service

[Service]
Type=simple
ExecStart=/usr/sbin/gpm -m /dev/input/mice -t ps2
ExecStop=/usr/sbin/gpm -k
But it didn't work... Not even after a reboot...
How can I get a usable gpm.service file???
 
Old 06-16-2013, 07:20 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
This is the one from the Arch package for GPM:
Code:
[Unit]
Description=Virtual console mouse server

[Service]
Type=forking
ExecStart=/usr/bin/gpm -m /dev/input/mice -t imps2

[Install]
WantedBy=multi-user.target
 
1 members found this post helpful.
Old 06-16-2013, 12:46 PM   #3
jtwdyp
Member
 
Registered: Apr 2011
Distribution: antiX, Mageia, OpenSUSE, etc... I multi-boot
Posts: 36

Original Poster
Rep: Reputation: 0
Thumbs up Now THAT worked. Thanks TobiSGD...

I modified my gpm.service file with the :
Code:
[Service]
Type=forking
And the :
Code:
[Install]
WantedBy=multi-user.target
from the example you provided...

And suddenly systemctl could start and stop and/or enable gpm.service

Thank You!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert init script to systemd file service igor012 Linux - Software 1 10-15-2012 10:05 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
[SOLVED] gpm-1.20.6-make install-gpm error janakiramulu Linux From Scratch 12 05-12-2011 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration