You are not logged in.

#501 2015-01-24 15:48:52

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#502 2015-01-24 15:50:56

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:

You could try ntpd then (instead of ntp-client). I am unfamiliar with sntp..

Offline

#503 2015-01-24 15:56:15

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

aaditya wrote:
xanb wrote:

You could try ntpd then (instead of ntp-client). I am unfamiliar with sntp..

How can I do that?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#504 2015-01-24 15:57:32

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:
aaditya wrote:
xanb wrote:

You could try ntpd then (instead of ntp-client). I am unfamiliar with sntp..

How can I do that?

sudo rc-service ntpd start

Offline

#505 2015-01-24 16:16:45

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

aaditya wrote:
xanb wrote:
aaditya wrote:

There is rc-service ntp-client status but I think that only shows the status, not why it failed.
You could try looking at /var/log/rc.log for clues.

/var/log/rc.log is very simple. How can I get more output?
In the booting screen there is much info than in rc.log!

As far as I know the output is the same, but you could try starting the service manually to see the output, ie,

sudo rc-service ntp-client start

Not it isn't. I get warnings in the booting and shuting down that don't appear in rc.log


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#506 2015-01-24 18:47:17

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

This post is a bit of topic: I'm not sure where to post it: in ARM forums or here.

I have Olimex A20-Olinuxino-micro. I installed Archlinux without problems with SSD (/dev/sda1) as my root filesystem. But I decided to replace systemd with openrc. So I compile from AUR sysvinit, openrc-core, openrc-base and openrc-net and I put in my local repositori.

Then I install them:

[(2015-01-24) root@serviedre ~]# pacman -S openrc-core openrc-base
:: There are 9 members in group openrc-base:
:: Repository personal
   1) cronie-openrc  2) cryptsetup-openrc  3) dbus-openrc  4) device-mapper-openrc  5) dhcpcd-openrc  6) glibc-openrc
   7) inetutils-openrc  8) lvm2-openrc  9) mdadm-openrc

Enter a selection (default=all): 
resolving dependencies...
looking for conflicting packages...
:: openrc-core and systemd-sysvcompat are in conflict. Remove systemd-sysvcompat? [y/N] y

Package (13)                   Old Version  New Version  Net Change  Download Size

core/cronie                                 1.4.12-1       0.24 MiB       0.06 MiB
systemd-sysvcompat             218-1                      -0.03 MiB               
personal/sysvinit                           2.88-15        0.19 MiB       0.05 MiB
personal/cronie-openrc                      20150117-1     0.00 MiB       0.00 MiB
personal/cryptsetup-openrc                  20150117-1     0.02 MiB       0.01 MiB
personal/dbus-openrc                        20150117-1     0.00 MiB       0.00 MiB
personal/device-mapper-openrc               20150117-1     0.01 MiB       0.00 MiB
personal/dhcpcd-openrc                      20150117-1     0.00 MiB       0.00 MiB
personal/glibc-openrc                       20150117-1     0.00 MiB       0.00 MiB
personal/inetutils-openrc                   20150117-1     0.00 MiB       0.00 MiB
personal/lvm2-openrc                        20150117-1     0.01 MiB       0.00 MiB
personal/mdadm-openrc                       20150117-1     0.01 MiB       0.00 MiB
personal/openrc-core                        0.13.6-1       0.58 MiB       0.17 MiB

Total Download Size:   0.31 MiB
Total Installed Size:  1.07 MiB
Net Upgrade Size:      1.04 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 cronie-1.4.12-1-armv7h                             61.2 KiB   146K/s 00:00 [##########################################]  19%
 sysvinit-2.88-15-armv7h                           115.1 KiB   268K/s 00:00 [##########################################]  36%
 openrc-core-0.13.6-1-armv7h                       292.2 KiB   680K/s 00:00 [##########################################]  92%
 cronie-openrc-20150117-1-any                      293.9 KiB   683K/s 00:00 [##########################################]  93%
 device-mapper-openrc-20150117-1-any               296.9 KiB   675K/s 00:00 [##########################################]  94%
 cryptsetup-openrc-20150117-1-any                  302.5 KiB   687K/s 00:00 [##########################################]  96%
 dbus-openrc-20150117-1-any                        304.2 KiB   691K/s 00:00 [##########################################]  96%
 dhcpcd-openrc-20150117-1-any                      305.5 KiB   694K/s 00:00 [##########################################]  97%
 glibc-openrc-20150117-1-any                       307.4 KiB   699K/s 00:00 [##########################################]  97%
 inetutils-openrc-20150117-1-any                   308.9 KiB   687K/s 00:00 [##########################################]  98%
 lvm2-openrc-20150117-1-any                        312.0 KiB   693K/s 00:00 [##########################################]  99%
 mdadm-openrc-20150117-1-any                       314.3 KiB   698K/s 00:00 [##########################################] 100%
(12/12) checking keys in keyring                                            [##########################################] 100%
(12/12) checking package integrity                                          [##########################################] 100%
(12/12) loading package files                                               [##########################################] 100%
(12/12) checking for file conflicts                                         [##########################################] 100%
(13/13) checking available disk space                                       [##########################################] 100%
(1/1) removing systemd-sysvcompat                                           [##########################################] 100%
( 1/12) installing sysvinit                                                 [##########################################] 100%
	==> You can boot up systemd any time.
	==> Add 'init=/usr/lib/systemd/systemd' to kernel command line.
( 2/12) installing openrc-core                                              [##########################################] 100%
	==> Set up your network interface before you reboot.
	==> Visit http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
Service `netmount' needs non existent service `net'
 * Caching service dependencies ... [ ok ]
Optional dependencies for openrc-core
    dhcpcd-openrc: dhcpcd initscript [pending]
( 3/12) installing cronie                                                   [##########################################] 100%
Optional dependencies for cronie
    pm-utils: defer anacron on battery power
    smtp-server: send job output via email
    smtp-forwarder: forward job output to email server
( 4/12) installing cronie-openrc                                            [##########################################] 100%
	==> run 'rc-update add cronie default'
( 5/12) installing device-mapper-openrc                                     [##########################################] 100%
	==> run 'rc-update add device-mapper boot'
	==> run 'rc-update add dmeventd boot'
( 6/12) installing cryptsetup-openrc                                        [##########################################] 100%
	==> run 'rc-update add dmcrypt boot'
( 7/12) installing dbus-openrc                                              [##########################################] 100%
 * service dbus added to runlevel default
( 8/12) installing dhcpcd-openrc                                            [##########################################] 100%
	==> run 'rc-update add dhcpcd default'
( 9/12) installing glibc-openrc                                             [##########################################] 100%
	==> run 'rc-update add nscd default'
Optional dependencies for glibc-openrc
    openldap-openrc
    bind-openrc
(10/12) installing inetutils-openrc                                         [##########################################] 100%
	==> run 'rc-update add ftpd default'
(11/12) installing lvm2-openrc                                              [##########################################] 100%
	==> run 'rc-update add lvm boot'
(12/12) installing mdadm-openrc                                             [##########################################] 100%
	==> run 'rc-update add mdadm boot'
Optional dependencies for mdadm-openrc
    bind-openrc
[(2015-01-24) root@serviedre ~]# 

As I access to this machine via SSH, I installed SSH:

[(2015-01-24) root@serviedre ~]# pacman -S openssh-openrc
resolving dependencies...
looking for conflicting packages...

Package (1)              New Version  Net Change  Download Size

personal/openssh-openrc  20150121-1     0.01 MiB       0.00 MiB

Total Download Size:   0.00 MiB
Total Installed Size:  0.01 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 openssh-openrc-20150121-1-any                       2.3 KiB  0.00B/s 00:00 [##########################################] 100%
(1/1) checking keys in keyring                                              [##########################################] 100%
(1/1) checking package integrity                                            [##########################################] 100%
(1/1) loading package files                                                 [##########################################] 100%
(1/1) checking for file conflicts                                           [##########################################] 100%
(1/1) checking available disk space                                         [##########################################] 100%
(1/1) installing openssh-openrc                                             [##########################################] 100%
	==> run 'rc-update add sshd default'
Optional dependencies for openssh-openrc
    bind-openrc: bind initscript
[(2015-01-24) root@serviedre ~]# 

and started it at the beggining:

[(2015-01-24) root@serviedre ~]# rc-service sshd start
 * Caching service dependencies ...                                                                                    [ ok ]
 * No permission to apply cgroup settings
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /run/openrc/softlevel
 * ERROR: sshd failed to start
[(2015-01-24) root@serviedre ~]# rc-update add ssgd
 * rc-update: service `ssgd' does not exist
[(2015-01-24) root@serviedre ~]# rc-update add sshd
 * service sshd added to runlevel sysinit
[(2015-01-24) root@serviedre ~]# 

Then I rebooted my machine, but I can't acces though SSH.
When I connected the machine to HDMI output, I get this (video).


What can I do?
It seems that openrc causes that uboot troubles itself.


Thanks in advance,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#507 2015-01-24 19:38:23

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:

This post is a bit of topic: I'm not sure where to post it: in ARM forums or here.

I have Olimex A20-Olinuxino-micro. I installed Archlinux without problems with SSD (/dev/sda1) as my root filesystem. But I decided to replace systemd with openrc. So I compile from AUR sysvinit, openrc-core, openrc-base and openrc-net and I put in my local repositori.

Then I install them:

[(2015-01-24) root@serviedre ~]# pacman -S openrc-core openrc-base
:: There are 9 members in group openrc-base:
:: Repository personal
   1) cronie-openrc  2) cryptsetup-openrc  3) dbus-openrc  4) device-mapper-openrc  5) dhcpcd-openrc  6) glibc-openrc
   7) inetutils-openrc  8) lvm2-openrc  9) mdadm-openrc

Enter a selection (default=all): 
resolving dependencies...
looking for conflicting packages...
:: openrc-core and systemd-sysvcompat are in conflict. Remove systemd-sysvcompat? [y/N] y

Package (13)                   Old Version  New Version  Net Change  Download Size

core/cronie                                 1.4.12-1       0.24 MiB       0.06 MiB
systemd-sysvcompat             218-1                      -0.03 MiB               
personal/sysvinit                           2.88-15        0.19 MiB       0.05 MiB
personal/cronie-openrc                      20150117-1     0.00 MiB       0.00 MiB
personal/cryptsetup-openrc                  20150117-1     0.02 MiB       0.01 MiB
personal/dbus-openrc                        20150117-1     0.00 MiB       0.00 MiB
personal/device-mapper-openrc               20150117-1     0.01 MiB       0.00 MiB
personal/dhcpcd-openrc                      20150117-1     0.00 MiB       0.00 MiB
personal/glibc-openrc                       20150117-1     0.00 MiB       0.00 MiB
personal/inetutils-openrc                   20150117-1     0.00 MiB       0.00 MiB
personal/lvm2-openrc                        20150117-1     0.01 MiB       0.00 MiB
personal/mdadm-openrc                       20150117-1     0.01 MiB       0.00 MiB
personal/openrc-core                        0.13.6-1       0.58 MiB       0.17 MiB

Total Download Size:   0.31 MiB
Total Installed Size:  1.07 MiB
Net Upgrade Size:      1.04 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 cronie-1.4.12-1-armv7h                             61.2 KiB   146K/s 00:00 [##########################################]  19%
 sysvinit-2.88-15-armv7h                           115.1 KiB   268K/s 00:00 [##########################################]  36%
 openrc-core-0.13.6-1-armv7h                       292.2 KiB   680K/s 00:00 [##########################################]  92%
 cronie-openrc-20150117-1-any                      293.9 KiB   683K/s 00:00 [##########################################]  93%
 device-mapper-openrc-20150117-1-any               296.9 KiB   675K/s 00:00 [##########################################]  94%
 cryptsetup-openrc-20150117-1-any                  302.5 KiB   687K/s 00:00 [##########################################]  96%
 dbus-openrc-20150117-1-any                        304.2 KiB   691K/s 00:00 [##########################################]  96%
 dhcpcd-openrc-20150117-1-any                      305.5 KiB   694K/s 00:00 [##########################################]  97%
 glibc-openrc-20150117-1-any                       307.4 KiB   699K/s 00:00 [##########################################]  97%
 inetutils-openrc-20150117-1-any                   308.9 KiB   687K/s 00:00 [##########################################]  98%
 lvm2-openrc-20150117-1-any                        312.0 KiB   693K/s 00:00 [##########################################]  99%
 mdadm-openrc-20150117-1-any                       314.3 KiB   698K/s 00:00 [##########################################] 100%
(12/12) checking keys in keyring                                            [##########################################] 100%
(12/12) checking package integrity                                          [##########################################] 100%
(12/12) loading package files                                               [##########################################] 100%
(12/12) checking for file conflicts                                         [##########################################] 100%
(13/13) checking available disk space                                       [##########################################] 100%
(1/1) removing systemd-sysvcompat                                           [##########################################] 100%
( 1/12) installing sysvinit                                                 [##########################################] 100%
	==> You can boot up systemd any time.
	==> Add 'init=/usr/lib/systemd/systemd' to kernel command line.
( 2/12) installing openrc-core                                              [##########################################] 100%
	==> Set up your network interface before you reboot.
	==> Visit http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
Service `netmount' needs non existent service `net'
 * Caching service dependencies ... [ ok ]
Optional dependencies for openrc-core
    dhcpcd-openrc: dhcpcd initscript [pending]
( 3/12) installing cronie                                                   [##########################################] 100%
Optional dependencies for cronie
    pm-utils: defer anacron on battery power
    smtp-server: send job output via email
    smtp-forwarder: forward job output to email server
( 4/12) installing cronie-openrc                                            [##########################################] 100%
	==> run 'rc-update add cronie default'
( 5/12) installing device-mapper-openrc                                     [##########################################] 100%
	==> run 'rc-update add device-mapper boot'
	==> run 'rc-update add dmeventd boot'
( 6/12) installing cryptsetup-openrc                                        [##########################################] 100%
	==> run 'rc-update add dmcrypt boot'
( 7/12) installing dbus-openrc                                              [##########################################] 100%
 * service dbus added to runlevel default
( 8/12) installing dhcpcd-openrc                                            [##########################################] 100%
	==> run 'rc-update add dhcpcd default'
( 9/12) installing glibc-openrc                                             [##########################################] 100%
	==> run 'rc-update add nscd default'
Optional dependencies for glibc-openrc
    openldap-openrc
    bind-openrc
(10/12) installing inetutils-openrc                                         [##########################################] 100%
	==> run 'rc-update add ftpd default'
(11/12) installing lvm2-openrc                                              [##########################################] 100%
	==> run 'rc-update add lvm boot'
(12/12) installing mdadm-openrc                                             [##########################################] 100%
	==> run 'rc-update add mdadm boot'
Optional dependencies for mdadm-openrc
    bind-openrc
[(2015-01-24) root@serviedre ~]# 

As I access to this machine via SSH, I installed SSH:

[(2015-01-24) root@serviedre ~]# pacman -S openssh-openrc
resolving dependencies...
looking for conflicting packages...

Package (1)              New Version  Net Change  Download Size

personal/openssh-openrc  20150121-1     0.01 MiB       0.00 MiB

Total Download Size:   0.00 MiB
Total Installed Size:  0.01 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 openssh-openrc-20150121-1-any                       2.3 KiB  0.00B/s 00:00 [##########################################] 100%
(1/1) checking keys in keyring                                              [##########################################] 100%
(1/1) checking package integrity                                            [##########################################] 100%
(1/1) loading package files                                                 [##########################################] 100%
(1/1) checking for file conflicts                                           [##########################################] 100%
(1/1) checking available disk space                                         [##########################################] 100%
(1/1) installing openssh-openrc                                             [##########################################] 100%
	==> run 'rc-update add sshd default'
Optional dependencies for openssh-openrc
    bind-openrc: bind initscript
[(2015-01-24) root@serviedre ~]# 

and started it at the beggining:

[(2015-01-24) root@serviedre ~]# rc-service sshd start
 * Caching service dependencies ...                                                                                    [ ok ]
 * No permission to apply cgroup settings
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /run/openrc/softlevel
 * ERROR: sshd failed to start
[(2015-01-24) root@serviedre ~]# rc-update add ssgd
 * rc-update: service `ssgd' does not exist
[(2015-01-24) root@serviedre ~]# rc-update add sshd
 * service sshd added to runlevel sysinit
[(2015-01-24) root@serviedre ~]# 

Then I rebooted my machine, but I can't acces though SSH.
When I connected the machine to HDMI output, I get this (video).


What can I do?
It seems that openrc causes that uboot troubles itself.


Thanks in advance,

Seems you are not following the output...

# rc-service sshd start
* Caching service dependencies ...                                                                                    [ ok ]
* No permission to apply cgroup settings
* You are attempting to run an openrc service on a
* system which openrc did not boot.
* You may be inside a chroot or you may have used
* another initialization system to boot this system.
* In this situation, you will get unpredictable results!
* If you really want to do this, issue the following command:
* touch /run/openrc/softlevel
* ERROR: sshd failed to start

Did you try:

touch /run/openrc/softlevel

Then (to check):

sudo rc-service sshd start

Secondly I think sshd is meant to be added to the default runlevel:

rc-update add sshd default

To check you could whether sshd was added in /etc/runlevels/default/

Offline

#508 2015-01-25 11:36:27

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

I suspect the problem is not related to ssh. See video. uboot does not like openrc.
Even if I pass "initrd=/usr/lib/systemd/systemd", then uboot hangs.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#509 2015-01-26 09:53:37

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

I think this is ARM related. Sorry for that.

Another question: how can I achieve this keyboard mapping fix in OpenRC? I get no efects while pressing CTRL+F1, ..., CTRL+F10. Only CTRL+F4 behaves as expected in X (return to tty4). In Console, no combination of these keys gets result.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#510 2015-01-26 10:11:14

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:

I think this is ARM related. Sorry for that.

Another question: how can I achieve this keyboard mapping fix in OpenRC? I get no efects while pressing CTRL+F1, ..., CTRL+F10. Only CTRL+F4 behaves as expected in X (return to tty4). In Console, no combination of these keys gets result.

Hmm, I really have no experience with this, only thing I can suggest is to verify that the keycodes for you are same as those mentioned in the wiki.

https://wiki.archlinux.org/index.php/Ex … s#Keycodes

Offline

#511 2015-01-26 10:28:49

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

Ok.

Another topic: I get  this warning at shutdown:

/usr/lib/rc/cache is not writable

Why?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#512 2015-01-26 10:40:29

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:

Ok.

Another topic: I get  this warning at shutdown:

/usr/lib/rc/cache is not writable

Why?

I dont know why you get that (could ask artoo), but I noticed that there is not a folder /usr/lib/rc/cache, and when I created it as

sudo mkdir /usr/lib/rc/cache

the warning went away.

Offline

#513 2015-01-26 10:57:57

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

Thanks. This is an annoying warning so. Can someone fix it?
Another warning:

runscript is deprecated: please use openrc-run instead

Thanks in advance,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#514 2015-01-26 11:05:59

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

Acording to this we should file bugs against package in /etc/init.d containing this. The "guilties" are:

[xan@argonia ~]$ grep -r "runscript" /etc/init.d/
/etc/init.d/net.lo:#!/usr/bin/runscript
/etc/init.d/net-auto-wireless:#!/usr/bin/runscript
[xan@argonia ~]$

Last edited by xanb (2015-01-26 11:09:54)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#515 2015-01-26 11:08:26

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:

Thanks. This is an annoying warning so. Can someone fix it?
Another warning:

runscript is deprecated: please use openrc-run instead

Thanks in advance,

I guess in some custom service you are using the header

#!/usr/bin/runscript

instead of

#!/usr/bin/openrc-run

Most of artoo scripts were migrated I think.

Offline

#516 2015-01-26 11:10:38

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

aaditya wrote:

I guess in some custom service you are using the header

#!/usr/bin/runscript

instead of

#!/usr/bin/openrc-run

Most of artoo scripts were migrated I think.

net.lo should change,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#517 2015-01-26 11:13:05

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:
aaditya wrote:

I guess in some custom service you are using the header

#!/usr/bin/runscript

instead of

#!/usr/bin/openrc-run

Most of artoo scripts were migrated I think.

net.lo should change,

Yup, you are right I guess.

Could add a comment here.

Last edited by aaditya (2015-01-26 11:13:32)

Offline

#518 2015-01-26 11:19:32

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

aaditya wrote:
xanb wrote:
aaditya wrote:

I guess in some custom service you are using the header

#!/usr/bin/runscript

instead of

#!/usr/bin/openrc-run

Most of artoo scripts were migrated I think.

net.lo should change,

Yup, you are right I guess.

Could add a comment here.

We should. Done it.

Last edited by xanb (2015-01-26 11:20:42)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#519 2015-02-04 09:38:34

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

How to convert xautolock in OpenRC?. I get from Systemd/services:

[Unit]
Description=Lock the screen automatically after a timeout
 
[Service]
Type=simple
User=<username>
Environment=DISPLAY=:0
ExecStart=/usr/bin/xautolock -time 10 -locker slock -detectsleep
 
[Install]
WantedBy=graphical.target

Thanks,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#520 2015-02-04 10:06:07

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

xanb wrote:

How to convert xautolock in OpenRC?. I get from Systemd/services:

[Unit]
Description=Lock the screen automatically after a timeout
 
[Service]
Type=simple
User=<username>
Environment=DISPLAY=:0
ExecStart=/usr/bin/xautolock -time 10 -locker slock -detectsleep
 
[Install]
WantedBy=graphical.target

Thanks,

I think you could put in /etc/local.d/xautolock.start (needs to be executable)

#!/usr/bin/bash
# Lock the screen automatically after a timeout

DISPLAY=:0 /usr/bin/xautolock -time 10 -locker slock -detectsleep &

Offline

#521 2015-02-04 10:12:55

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

Ok, thanks. What about xautolock.stop?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#522 2015-02-04 10:16:41

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,585
Website

Re: OpenRC & eudev on Arch

@ xanb, I think simply putting it in .xinitrc should work. No need to go with a service file.

Offline

#523 2015-02-04 11:10:55

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: OpenRC & eudev on Arch

I think x33a's method makes more sense.

.stop file not needed as it would get killed automatically.

Offline

#524 2015-02-04 14:33:22

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch

x33a wrote:

@ xanb, I think simply putting it in .xinitrc should work. No need to go with a service file.

How can I do that?
What the syntax?

Thanks in advance,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#525 2015-02-04 14:35:17

xanb
Member
Registered: 2012-07-24
Posts: 414

Re: OpenRC & eudev on Arch


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB