LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2019, 01:08 PM   #1
feelindumb
LQ Newbie
 
Registered: Sep 2019
Posts: 1

Rep: Reputation: Disabled
Unhappy Access denied for service running automatically


I just installed Arch on my thinkpad and wanted to enable the mousepad at launch automatically which is not working by itself. So I creted a unit file with the command in it. When running it manually it does work flawlessy but on boot I get an access denied.

Unit File :

Code:
  GNU nano 4.4                                                                /etc/systemd/system/elantech.service                                                                            
[Unit]
Description=Enable elantech touchpad and trackpoint of thinkpad at boot
After=default.target

[Service]
User=root
Type=oneshot
ExecStart=/bin/bash -c 'echo -n "elantech" > /sys/bus/serio/devices/serio1/protocol'

[Install]
WantedBy=default.target
I tried with different typrs or other targets none of which worked.

Systemctl status :

Code:
● elantech.service - Enable elantech touchpad and trackpoint of thinkpad at boot
   Loaded: loaded (/etc/systemd/system/elantech.service; enabled; vendor preset>
   Active: failed (Result: exit-code) since Thu 2019-09-12 19:57:01 CEST; 35s a>
  Process: 503 ExecStart=/bin/bash -c echo -n "elantech" > /sys/bus/serio/devic>
 Main PID: 503 (code=exited, status=1/FAILURE)

Sep 12 19:57:01 archlinux systemd[1]: Starting Enable elantech touchpad and tra>
Sep 12 19:57:01 archlinux bash[503]: /bin/bash: /sys/bus/serio/devices/serio1/p>
Sep 12 19:57:01 archlinux systemd[1]: elantech.service: Main process exited, co>
Sep 12 19:57:01 archlinux systemd[1]: elantech.service: Failed with result 'exi>
Sep 12 19:57:01 archlinux systemd[1]: Failed to start Enable elantech touchpad >
I would be really thankful for any ideas since I dont know what else I could try.
 
Old 09-12-2019, 02:51 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,490
Blog Entries: 9

Rep: Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380
Can you please make the whole systemctl output visible.
Maybe by maximising the terminal.
Also add '-n999'.
 
  


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
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
Apache getting (13) Permisison Denied Access to /index.html denied imkornhulio Linux - Server 1 03-12-2015 12:31 PM
Red Hat, help with Apache access denied errors while running Twiki brettreyu Linux - Newbie 1 09-14-2007 07:49 PM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 09:46 AM
Access denied when running F-prot preeth26 Linux - Security 6 03-02-2006 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration