Manjaro Linux Forum

Technical Issues and Assistance => OpenRC Support => Topic started by: artoo on 27. December 2014, 19:15:24

Title: Your suggestions of missing runscripts for packages
Post by: artoo on 27. December 2014, 19:15:24
Please post here eventually missing runscript suggestions to support a certain service or package currently not covered.

For example, I just added zfs support on openrc.

Please keep it short, just name the package missing openrc support and please don't use the thread for other technical difficulties.
Its meant as a ToDo list and to have easy overview where support is missing.
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 30. December 2014, 13:06:45
There is an openrc
community/manjaro-openrc

I think this installed a bunch of openrc scripts but one thing very missing was an ntpd server.

what a PIA this simple admin set up has been.  Also locate and updatedb

Ruben
Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 30. December 2014, 13:09:49
fancontrol would be nice.

I think this installed a bunch of openrc scripts but one thing very missing was an ntpd server.

There's an OpenRC script for ntpd already:
Code: (text) [Select]
jonathon@ivy ~> yaourt openrc ntpd
1 community/openntpd-openrc 20141229-1 (openrc-net)
    OpenRC openntpd init script
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 30. December 2014, 13:19:12
fancontrol would be nice.

There's an OpenRC script for ntpd already:
Code: (text) [Select]
jonathon@ivy ~> yaourt openrc ntpd
1 community/openntpd-openrc 20141229-1 (openrc-net)
    OpenRC openntpd init script

it is not default included or set up, and it needs to be.
Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 30. December 2014, 13:29:26
Why? No other distributions install ntpd by default... ?
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 30. December 2014, 13:46:41
Why? No other distributions install ntpd by default... ?

that would not be the whole method of judging what should and can be done but FWIW

/var/lib/hardware/udi/ntp4.fG36JLVNse9
/var/lib/ntp
/var/lib/ntp/dev
/var/lib/ntp/drift
/var/lib/ntp/etc
/var/lib/ntp/etc/ntp.conf.iburst
/var/lib/ntp/var
/var/lib/ntp/var/lib
/var/lib/ntp/var/lib/ntp
/var/lib/ntp/var/run
/var/lib/ntp/var/run/ntp
/var/lib/ntp/var/run/ntp/ntpd.pid
/var/log/ntp
/var/run/ntp


It is set up be default in opensuse 13.1.  I used to have to do it by hand in the ole days

The whole mechaism for handling system time is problematic for the openrc images, anbd setting ntpd by default is likely the easiest way to cut through it and just have it work correctly out of the box.

The timezone database should just be looked over as well, just to make sure it is consistant with applicaitons like cron.

Ruben
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 30. December 2014, 13:50:30
that would not be the whole method of judging what should and can be done but FWIW

/var/lib/hardware/udi/ntp4.fG36JLVNse9
/var/lib/ntp
/var/lib/ntp/dev
/var/lib/ntp/drift
/var/lib/ntp/etc
/var/lib/ntp/etc/ntp.conf.iburst
/var/lib/ntp/var
/var/lib/ntp/var/lib
/var/lib/ntp/var/lib/ntp
/var/lib/ntp/var/run
/var/lib/ntp/var/run/ntp
/var/lib/ntp/var/run/ntp/ntpd.pid
/var/log/ntp
/var/run/ntp


It is set up be default in opensuse 13.1.  I used to have to do it by hand in the ole days

The whole mechaism for handling system time is problematic for the openrc images, anbd setting ntpd by default is likely the easiest way to cut through it and just have it work correctly out of the box.

The timezone database should just be looked over as well, just to make sure it is consistant with applicaitons like cron.

Ruben
I have it queued up in my list of changes for the next ISO.
ntp-openrc will be installed by default, but not enabled (same as openssh-openrc).
I have also updated timeset and timeset-gui to be compatible with OpenRC, and timeset-gui will be installed in the next ISO as well.
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 31. December 2014, 12:56:33
There is an openrc
community/manjaro-openrc

I think this installed a bunch of openrc scripts but one thing very missing was an ntpd server.

what a PIA this simple admin set up has been.  Also locate and updatedb

Ruben

manjaro-openrc is a small meta package to quickly pull in componenets to get a xorh with the DM of your choice running.

You actually even got two time server options, ntp and openntp

Code: [Select]
pacman -S openrc-timed

I think you haven't explored all the openrc-packages.
Its about 90 packages, and normal use case should be covered with this, even servers.

The thread is more meant to ask if eg some fileystem support is missing, or some script is needed for hardware, such as bumblebee, or dual video cards, I added couple of days ago.

Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 03. January 2015, 16:27:01
syncthing please. :)

Code: [Select]
jonathon@x61 ~> yaourt syncthing
1 community/syncthing 0.10.14-1
    Open Source Continuous Replication / Cluster Synchronization Thing
2 community/syncthing-gtk 0.5.6-1
    GTK3 based GUI and notification area icon for Syncthing
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 04. January 2015, 18:58:34
syncthing please. :)

Code: [Select]
jonathon@x61 ~> yaourt syncthing
1 community/syncthing 0.10.14-1
    Open Source Continuous Replication / Cluster Synchronization Thing
2 community/syncthing-gtk 0.5.6-1
    GTK3 based GUI and notification area icon for Syncthing
3 aur/pulse-git 0.1.1.0.g61b44ca-6 (0)
    Synchronise your files without also sharing them with a stranger in the cloud. A fork of Syncthing.
4 aur/syncthing-bin 0.10.14-2 [installed] (8)
    Open Source Continuous Replication / Cluster Synchronization Thing: binary.
5 aur/syncthing-discosrv 20141211.r30.f38b930-1 (2)
    Discover server for the syncthing P2P synchronization utility
6 aur/syncthing-git 0.9.10.r17.g5235e82-1 (10)
    Open Source Continuous Replication / Cluster Synchronization Thing
7 aur/syncthing-gtk-git v0.3.2.r70.g862b496-2 (1)
    GTK3 & python based GUI and notification area icon for Syncthing
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==>

There would have to be a compromise on this.
My policy has been to only upload to repos if the depends are also in repo.
I personally think it pollutes repos, if some depend in only in AUR.

Either somebody ports the package to repo, and I could easily provide a openrc package for it, or I remian the policy to put AUR depends in a special build, which won't go in repo.
I would go with the latter and update openrc-aur build in packages-openrc repo.
With current structure, it'd be no problem to integrate the AUR specific package in the main ones at any time.  :)
Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 04. January 2015, 23:00:14
Pants, let me edit that... syncthing is in community. I forgot I'd reinstalled from AUR to get the latest version a couple of versions back... :S
Title: Re: Your suggestions of missing runscripts for packages
Post by: urbanomad64 on 05. January 2015, 12:11:40
What about clamav & freshclam daemon activation?
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 05. January 2015, 21:02:59
What about clamav & freshclam daemon activation?

syncthing please. :)


Will be added :)

Quote
### BoxIt memo ###

User artoo committed following changes:

 - unstable community i686:  2 new and 0 removed package(s)
 - unstable community x86_64:  2 new and 0 removed package(s)

-------------- next part --------------
[New Packages]
clamav-openrc-20150105-1-any.pkg.tar.xz
syncthing-openrc-20150105-1-any.pkg.tar.xz
-------------- next part --------------
[New Packages]
clamav-openrc-20150105-1-any.pkg.tar.xz
syncthing-openrc-20150105-1-any.pkg.tar.xz

 :)
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 06. January 2015, 07:45:33
your going to have clamav on by default?  Why?

when was the last time you caught a virus on your GNU box?

Ruben
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 06. January 2015, 13:27:48
your going to have clamav on by default?  Why?

when was the last time you caught a virus on your GNU box?

Ruben

Would you please stop with this.
My patience runs thin by now.

Where the hell do you read in this thread something about default services?
Title: Re: Your suggestions of missing runscripts for packages
Post by: turkbits on 15. January 2015, 21:46:15
please add openrc support for nginx, maridb and php-fpm

thanks your effort of course
Title: Re: Your suggestions of missing runscripts for packages
Post by: turkbits on 15. January 2015, 22:04:40
i'm forget sorry,
and tlp (Linux Advanced Power Management)

* https://wiki.archlinux.org/index.php/TLP (https://wiki.archlinux.org/index.php/TLP)
* https://github.com/dywisor/tlp-portage (https://github.com/dywisor/tlp-portage)
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 16. January 2015, 12:12:37
Hi turkbits,

I am using mariadb with the mysql-openrc package/script.

Not using tlp as the tlp package conflicts with pm-utils, which is required by upower-pm-utils for suspend, hibernate, and other functions. Maybe both tlp package as well as its runscript will be required.
Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 16. January 2015, 13:44:13
I am using mariadb with the mysql-openrc package/script.
Would it be good to have mysql-openrc depend on mysql, and have a mariadb-openrc that depends on mariadb? nginx-openrc would depend on nginx and so install it automatically?
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 16. January 2015, 14:09:47
Would it be good to have mysql-openrc depend on mysql, and have a mariadb-openrc that depends on mariadb? nginx-openrc would depend on nginx and so install it automatically?

mariadb is a drop in replacement for mysql and thus provides mysql, which makes it compatible with mysql-openrc package. ;)
Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 16. January 2015, 14:18:03
Yes, but that wasn't really my point. :)
Title: Re: Your suggestions of missing runscripts for packages
Post by: viking60 on 19. January 2015, 13:48:02
I just had a chat on IRC and it seems that the service for Monitorix is much wanted.
Here is the Gentoo package:
http://packages.gentoo.org/package/www-misc/monitorix?arches=linux
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 19. January 2015, 16:09:54
please add openrc support for nginx, maridb and php-fpm

thanks your effort of course

I added php-fpm-openrc and nginx-openrc, will in in unstable repo today.

I just had a chat on IRC and it seems that the service for Monitorix is much wanted.
Here is the Gentoo package:
http://packages.gentoo.org/package/www-misc/monitorix?arches=linux

This thing would have an AUR depend.
I can add on git to openrc-aur pkgbuild, but won't be in repos as long as monitorix is only available on AUR.
Title: Re: Your suggestions of missing runscripts for packages
Post by: viking60 on 19. January 2015, 18:39:56
Thanks! That makes sense.
Title: Re: Your suggestions of missing runscripts for packages
Post by: zoof on 01. February 2015, 15:14:40
Not using tlp as the tlp package conflicts with pm-utils, which is required by upower-pm-utils for suspend, hibernate, and other functions. Maybe both tlp package as well as its runscript will be required.

According to https://forum.manjaro.org/index.php?topic=18115.msg165990#msg165990 (https://forum.manjaro.org/index.php?topic=18115.msg165990#msg165990) laptop-mode-tools is deprecated and will eventually be removed from the repo so perhaps a tlp-openrc script would be a good idea anyway.
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 01. February 2015, 19:48:26
According to https://forum.manjaro.org/index.php?topic=18115.msg165990#msg165990 (https://forum.manjaro.org/index.php?topic=18115.msg165990#msg165990) laptop-mode-tools is deprecated and will eventually be removed from the repo so perhaps a tlp-openrc script would be a good idea anyway.

Not possible, since tlp conflicts with upower-pm-utils.

Thank the upower devs who removed pm-utils support and made it systemd only.
Title: Re: Your suggestions of missing runscripts for packages
Post by: zoof on 01. February 2015, 20:45:04
So what happens when laptop-mode-tools is removed altogether?
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 02. February 2015, 18:31:41
So what happens when laptop-mode-tools is removed altogether?
It would probably still be in the AUR if upstream maintains it ;)

If you are on a desktop, you could also remove laptop-mode-tools.
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 02. February 2015, 18:34:39
@artoo
Someone requested for boinc-openrc (https://forum.manjaro.org/index.php?topic=20031.0).
Title: Re: Your suggestions of missing runscripts for packages
Post by: dr-kart on 02. February 2015, 20:35:06
@artoo
Someone requested for boinc-openrc (https://forum.manjaro.org/index.php?topic=20031.0).
+1
Title: Re: Your suggestions of missing runscripts for packages
Post by: turkbits on 06. February 2015, 19:54:08
thanks your efforts,

another request

redshift (https://wiki.archlinux.org/index.php/Redshift)

and

please review the profile-sync-deamon (https://aur.archlinux.org/packages.php?ID=54516)'s openrc script (https://github.com/graysky2/profile-sync-daemon/blob/master/init/psd.openrc). I think it's very buggy for manjaro's openrc way. Because when i compile with openrc support, daemon is not run at  boot sequence.

:)
Title: Re: Your suggestions of missing runscripts for packages
Post by: jonathon on 06. February 2015, 21:41:50
Should Redshift really be a system service? Shouldn't it be down to a user to decide? What happens on a multi-user system? Aside: Redshift-GTK takes care of things quite nicely.
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 07. February 2015, 05:22:54
For profile-sync-daemon, there are some things that need to be done with OpenRC:

1. Needs to be built with OpenRC support (that what is already done by turkbits)
Code: [Select]
yaourt -G profile-sync-daemon
cd profile-sync-daemon/
sed -i 's|install-systemd-all|install-openrc-all|' PKGBUILD
makepkg -si

2. Its OpenRC service needs to be edited and moved to the proper place:
Code: [Select]
sudo install -m755 /usr/share/doc/profile-sync-daemon/psd.openrc /etc/init.d/psd
sudo sed -i 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|' /etc/init.d/psd

After that it can be enabled and started in the usual way, ie:
Code: [Select]
sudo rc-service psd start # this can crash your browser if it is open
sudo rc-update add psd

The above was to install it for the first time.
To keep it up to date, the first set of commands can be followed, ie:
Code: [Select]
yaourt -G profile-sync-daemon
cd profile-sync-daemon/
sed -i 's|install-systemd-all|install-openrc-all|' PKGBUILD
makepkg -si
Title: Re: Your suggestions of missing runscripts for packages
Post by: turkbits on 07. February 2015, 21:24:05
Hi turkbits,

I am using mariadb with the mysql-openrc package/script.

Not using tlp as the tlp package conflicts with pm-utils, which is required by upower-pm-utils for suspend, hibernate, and other functions. Maybe both tlp package as well as its runscript will be required.

sorry for late reply.
firstly i want to install mariadb today. it'installed and running with any problem from command line. secondly i'm installed mysql-openrc package but mysql daemon isn't run with openrc.

Code: [Select]
sudo pacman -Rnsc mariadb
error: target not found: mariadb
sudo rm -rf /var/lib/mysql
sudo pacman -S mariadb
resolving dependencies...
looking for conflicting packages...

Packages (3) libmariadbclient-10.0.16-1  mariadb-clients-10.0.16-1
             mariadb-10.0.16-1

Total Installed Size:  158.86 MiB

Code: [Select]
sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql'150207 22:32:59 mysqld_safe Logging to '/var/lib/mysql/HAL9000.err'.
150207 22:32:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

Code: [Select]
sudo pacman -S mysql-openrc
resolving dependencies...
looking for conflicting packages...

Packages (1) mysql-openrc-20150119-1

Total Installed Size:  0.01 MiB

:: Proceed with installation? [Y/n]
(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 mysql-openrc                      [######################] 100%
==>  /etc/mysql/my.cnf requires basedir = /usr
==>  /etc/mysql/my.cnf requires pid-file = /var/run/mysqld/mysqld.pid
==>  /etc/mysql/my.cnf requires user = mysql
==> run 'rc-update add mysql default'
Optional dependencies for mysql-openrc
    bind-openrc: bind initscript

Code: [Select]
sudo rc-service mysql start
 * Checking mysqld configuration for mysql ...                            [ ok ]
 * Starting mysql ...
 * MySQL datadir `' is empty or invalid
 * Please check your config file `/etc/mysql/my.cnf'
 * ERROR: mysql failed to start

What is the solution to this problem?

thanks your effort

Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 08. February 2015, 07:22:24
sorry for late reply.
firstly i want to install mariadb today. it'installed and running with any problem from command line. secondly i'm installed mysql-openrc package but mysql daemon isn't run with openrc.

Code: [Select]
sudo pacman -Rnsc mariadb
error: target not found: mariadb
sudo rm -rf /var/lib/mysql
sudo pacman -S mariadb
resolving dependencies...
looking for conflicting packages...

Packages (3) libmariadbclient-10.0.16-1  mariadb-clients-10.0.16-1
             mariadb-10.0.16-1

Total Installed Size:  158.86 MiB

Code: [Select]
sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql'150207 22:32:59 mysqld_safe Logging to '/var/lib/mysql/HAL9000.err'.
150207 22:32:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

Code: [Select]
sudo pacman -S mysql-openrc
resolving dependencies...
looking for conflicting packages...

Packages (1) mysql-openrc-20150119-1

Total Installed Size:  0.01 MiB

:: Proceed with installation? [Y/n]
(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 mysql-openrc                      [######################] 100%
==>  /etc/mysql/my.cnf requires basedir = /usr
==>  /etc/mysql/my.cnf requires pid-file = /var/run/mysqld/mysqld.pid
==>  /etc/mysql/my.cnf requires user = mysql
==> run 'rc-update add mysql default'
Optional dependencies for mysql-openrc
    bind-openrc: bind initscript

Code: [Select]
sudo rc-service mysql start
 * Checking mysqld configuration for mysql ...                            [ ok ]
 * Starting mysql ...
 * MySQL datadir `' is empty or invalid
 * Please check your config file `/etc/mysql/my.cnf'
 * ERROR: mysql failed to start

What is the solution to this problem?

thanks your effort
Ah, I think I had faced a similar issue when I had tried it for the first time, I will try to replicate it in a VM and get back to you.
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 08. February 2015, 08:40:02
After some trial and error I was able to figure it out.
In the config file /etc/mysql/my.cnf, I changed:
Code: [Select]
# The MariaDB server
[mysqld]
port            = 3306
socket          = /run/mysqld/mysqld.sock

to
Code: [Select]
# The MariaDB server
[mysqld]
port            = 3306
socket          = /run/mysqld/mysqld.sock
user            = mysql
basedir         = /usr
datadir         = /var/lib/mysql
pid-file        = /run/mysql/mysql.pid

After adding those four lines it seemed to start correctly.
Code: [Select]
$ sudo rc-service mysql start
 * Checking mysqld configuration for mysql ...                                                                                   [ ok ]
 * Starting mysql ...                                                                                                            [ ok ]
Title: Re: Your suggestions of missing runscripts for packages
Post by: turkbits on 08. February 2015, 12:47:57
everything seems ok, thanks aaditya. (i think, mysql-openrc script should be rework, these paramater is not presented to mysql daemon from script)
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 09. February 2015, 16:25:15
everything seems ok, thanks aaditya. (i think, mysql-openrc script should be rework, these paramater is not presented to mysql daemon from script)

Iirc, adding these params breaks mysql under systemd.
I'll have to check this again.
If it doesn't braek, we can automatically add these changes, but, its not really good practise to change a foreign file, in this case mysql.cnf provided by mysql.
So better way is to simply print what changes the user needs to make to the file.
Title: Re: Your suggestions of missing runscripts for packages
Post by: nous on 20. February 2015, 01:47:24
Could you do an at-openrc and modify xdm/xdm-setup for mdm support? Thanks!
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 20. February 2015, 16:02:08
Hi nous,

I tested mdm in Virtualbox, where it runs but does not recognize my username and password for some reason.

However, I was able to login into mate using lxdm-consolekit (https://aur.archlinux.org/packages/lxdm-consolekit/), so maybe you could try that.

Edit-
Had a chat with nous in #manjaro-openrc, and he told me that mdm not allowing me to login can be solved by editing /etc/pam.d/mdm and removing the line containing pam_systemd.
Title: Re: Your suggestions of missing runscripts for packages
Post by: kah0922 on 24. February 2015, 18:28:38
Not possible, since tlp conflicts with upower-pm-utils.

Thank the upower devs who removed pm-utils support and made it systemd only.

I think someone at Gentoo made it so that tlp works with pm-utils here:https://github.com/dywisor/tlp-portage (https://github.com/dywisor/tlp-portage) https://github.com/dywisor/tlp-gentoo-additions (https://github.com/dywisor/tlp-gentoo-additions).
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 24. February 2015, 18:39:38
I think someone at Gentoo made it so that tlp works with pm-utils here:https://github.com/dywisor/tlp-portage (https://github.com/dywisor/tlp-portage) https://github.com/dywisor/tlp-gentoo-additions (https://github.com/dywisor/tlp-gentoo-additions).

Yes, I know, but the arch tlp package conflicts with pm-utils.
Title: Re: Your suggestions of missing runscripts for packages
Post by: kah0922 on 25. February 2015, 04:16:09
Yes, I know, but the arch tlp package conflicts with pm-utils.

Would it be possible to have two different packages for both versions in the Manjaro repos? For example one would be tlp and the other would be tlp-pm?
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 25. February 2015, 06:40:12
Guys I made a tlp-pmu pacakge and uploaded it to the AUR.
https://aur.archlinux.org/packages/tlp-pmu/

Could you check if it works for you?

You can start it as:
Code: [Select]
sudo rc-service tlp start
And enable it to start at boot as:
Code: [Select]
sudo rc-update add tlp default
To check if it is running:
Code: [Select]
sudo rc-service tlp status
sudo tlp-stat

But the thing is, I already maintain laptop-mode-tools in the AUR.. Could anyone maintain tlp-pmu?
Title: Re: Your suggestions of missing runscripts for packages
Post by: kah0922 on 25. February 2015, 22:41:33
Guys I made a tlp-pmu pacakge and uploaded it to the AUR.
https://aur.archlinux.org/packages/tlp-pmu/

Could you check if it works for you?

You can start it as:
Code: [Select]
sudo rc-service tlp start
And enable it to start at boot as:
Code: [Select]
sudo rc-update add tlp default
To check if it is running:
Code: [Select]
sudo rc-service tlp status
sudo tlp-stat

But the thing is, I already maintain laptop-mode-tools in the AUR.. Could anyone maintain tlp-pmu?

Just installed it. It seems to be working.
Title: Re: Your suggestions of missing runscripts for packages
Post by: MatthewAllan on 26. February 2015, 11:01:47
Hello, I am not sure if there is a openrc run script for enabling trim on a ssd because I have just got one yesterday and I have been looking through the forums and the internet but could I use a run script to enable it or would I need to something else. Thanks
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 26. February 2015, 11:15:39
Hello, I am not sure if there is a openrc run script for enabling trim on a ssd because I have just got one yesterday and I have been looking through the forums and the internet but could I use a run script to enable it or would I need to something else. Thanks
There seem to be multiple ways of doing it, more obvious ones to me seem to be via fstab and/or cron
https://wiki.archlinux.org/index.php/Solid_State_Drives#TRIM
Title: Re: Your suggestions of missing runscripts for packages
Post by: MatthewAllan on 26. February 2015, 11:21:35
Oh ok, thanks I had a look on that wiki page and I added the discard option to my fstab file. Is that the only thing that I need to do or would it be best to also create a cron task?
Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 26. February 2015, 11:34:19
Oh ok, thanks I had a look on that wiki page and I added the discard option to my fstab file. Is that the only thing that I need to do or would it be best to also create a cron task?
You could add an entry for it to be run weekly as the systemd service also seems to run weekly
For example https://wiki.archlinux.org/index.php/Cron#cronie_2
Title: Re: Your suggestions of missing runscripts for packages
Post by: MatthewAllan on 26. February 2015, 11:49:55
Thanks, I have now added a weekly task for cron to complete :).
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 26. February 2015, 12:08:56
Hello, I am not sure if there is a openrc run script for enabling trim on a ssd because I have just got one yesterday and I have been looking through the forums and the internet but could I use a run script to enable it or would I need to something else. Thanks

Also have a look at /etc/rc.conf.
It has options to tune ssd drives.
Title: Re: Your suggestions of missing runscripts for packages
Post by: MatthewAllan on 26. February 2015, 13:18:34
Ok thanks artoo :).
Title: libvirt missing openrc scripts
Post by: jbernardo on 07. March 2015, 16:14:17
Hello,
I need openrc init scripts for libvirt, anyone has written them?
Thank you!
Title: Re: libvirt missing openrc scripts
Post by: aaditya on 07. March 2015, 17:15:00
Hello,
I need openrc init scripts for libvirt, anyone has written them?
Thank you!
Hi,

I tried to port it from Gentoo:
https://github.com/aadityabagga/packages-openrc/commit/6c1080749560c4761c806583c6bdbba39cf78b4e

It has a problem though:
Both libvirt and libvirt-openrc provide file /etc/conf.d/libvirtd, so to install libvirt-openrc you will need to install libvirt first, move/rename /etc/conf.d/libvirtd, and then install libvirt-openrc.

You can grab the package I have made:
http://sourceforge.net/projects/archopenrc/files/openrc-eudev/x86_64/libvirt-openrc-20150307-1-any.pkg.tar.xz

The steps are as follows:
Code: [Select]
sudo pacman -S libvirt
sudo mv /etc/conf.d/libvirtd /etc/conf.d/libvirtd.def
wget http://sourceforge.net/projects/archopenrc/files/openrc-eudev/x86_64/libvirt-openrc-20150307-1-any.pkg.tar.xz
sudo pacman -U libvirt-openrc-20150307-1-any.pkg.tar.xz
Title: Re: Your suggestions of missing runscripts for packages
Post by: jbernardo on 07. March 2015, 18:50:03
Thank you! That seems to be what I needed, so I'll test it straight away.
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 14. March 2015, 18:31:00
I have it queued up in my list of changes for the next ISO.
ntp-openrc will be installed by default, but not enabled (same as openssh-openrc).
I have also updated timeset and timeset-gui to be compatible with OpenRC, and timeset-gui will be installed in the next ISO as well.

It worked nicely.  It was so nice to have a functioning time zone facility.  Whatever was fixed, it was great!
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 17. June 2015, 12:20:00
Quick announcement:

I have put couple of days ago a bumblebee-pid package in unstable.
bumblebee-openrc depends on the new package.

I have had opportunity today to test on a optimus laptop, and bumblebee now works as it should.
Title: Re: Your suggestions of missing runscripts for packages
Post by: jason_ca on 17. June 2015, 14:12:27
After some trial and error I was able to figure it out.
In the config file /etc/mysql/my.cnf, I changed:
Code: [Select]
# The MariaDB server
[mysqld]
port            = 3306
socket          = /run/mysqld/mysqld.sock

to
Code: [Select]
# The MariaDB server
[mysqld]
port            = 3306
socket          = /run/mysqld/mysqld.sock
user            = mysql
basedir         = /usr
datadir         = /var/lib/mysql
pid-file        = /run/mysql/mysql.pid

After adding those four lines it seemed to start correctly.
Code: [Select]
$ sudo rc-service mysql start
 * Checking mysqld configuration for mysql ...                                                                                   [ ok ]
 * Starting mysql ...                                                                                                            [ ok ]

Hello, Aaditya, unfortunately this doesn't work for me. When I do "sudo rc-service mysql start", I see the following:

150617 14:04:58 [ERROR] mysqld: File './mysql-bin.index' not found (Errcode: 13 "Permission denied")

Using mysql-openrc 20150611-1 & mariadb 10.0.19-1

Is there a way to overcome this? Thank you.
Title: Re: Your suggestions of missing runscripts for packages
Post by: Ponder on 17. June 2015, 14:51:59
Hello, Aaditya, unfortunately this doesn't work for me. When I do "sudo rc-service mysql start", I see the following:

150617 14:04:58 [ERROR] mysqld: File './mysql-bin.index' not found (Errcode: 13 "Permission denied")

Using mysql-openrc 20150611-1 & mariadb 10.0.19-1

Is there a way to overcome this? Thank you.

It works fine for me after adding lines particular to my installation.

I am not even remotely an expert on anything mysql. I don't even rise to the level of adequate novice. Still, I believe your MariaDB installation my not be configured correctly. Here is the relevant entry from my /etc/mysql/my.conf file:

Code: [Select]
[mysqld]
port = 3306
socket = /run/mysqld/mysqld.sock
basedir = /usr
pid-file = /var/run/mysql/mysql.pid
user = mysql
datadir = /var/lib/mysql
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

I recall having to manually enter some of those lines. I believe they were base directory and pid file. There may have been others. It took me quit awhile to figure it out. I had to dig through the MariaDB documentation and that of the application that uses it, MythTV.

It was not fun.

I hope this helps.


Title: Re: Your suggestions of missing runscripts for packages
Post by: aaditya on 17. June 2015, 18:44:52
Hello, Aaditya, unfortunately this doesn't work for me. When I do "sudo rc-service mysql start", I see the following:

150617 14:04:58 [ERROR] mysqld: File './mysql-bin.index' not found (Errcode: 13 "Permission denied")

Using mysql-openrc 20150611-1 & mariadb 10.0.19-1

Is there a way to overcome this? Thank you.
Hi, I was able to reproduce your issue, seems that mysql installation has changed slightly and requires an extra step before starting the service, given here:
https://wiki.archlinux.org/index.php/MySQL#Installation
Title: Re: Your suggestions of missing runscripts for packages
Post by: jason_ca on 17. June 2015, 20:27:37
Hi, I was able to reproduce your issue, seems that mysql installation has changed slightly and requires an extra step before starting the service, given here:
https://wiki.archlinux.org/index.php/MySQL#Installation

Hello, Aaditya, this works! Thank you a lot for fast reply. Saved my day, I totally didn't want to go back to Windows with XAMPP.  ^-^ This solution needs mention in Manjaro Wiki, I guess.
Ponder, thank you a lot as well for trying to help! -)

One more question: should I update to *-openrc runscript packages from AUR if update is available, I mean is it safe enough? Or should I use only ones provided from repos? Cause now Octopi notifies me that there's eudev-openrc update.

P.S.: What kind of help Manjaro needs to make OpenRC experience smoother? What can I do?
Title: Re: Your suggestions of missing runscripts for packages
Post by: Ponder on 17. June 2015, 20:30:33
eudev-openrc is deprecated. You can simply delete it.
Title: Re: Your suggestions of missing runscripts for packages
Post by: jason_ca on 17. June 2015, 20:39:21
Ponder, thank you!

One more question, though.  :P

Apache OpenRC service works and everything's fine. However, when I call "rc-status", it shows that it's crashed, despite it still _is_ working:

Code: [Select]
rc-status
Runlevel: default
 dbus                                                                                             [  started  ]
 rsyslog                                                                                          [  started  ]
 consolekit                                                                                       [  started  ]
 ufw                                                                                              [  started  ]
 NetworkManager                                                                                   [  started  ]
 acpid                                                                                            [  started  ]
 netmount                                                                                         [  started  ]
 xdm                                                                                              [  started  ]
 alsasound                                                                                        [  started  ]
 bluetooth                                                                                        [  started  ]
 sshd                                                                                             [  started  ]
 udev-postmount                                                                                   [  started  ]
 local                                                                                            [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                                                        [  started  ]
Dynamic Runlevel: manual
 mysql                                                                                            [  started  ]
 httpd                                                                                            [  crashed  ]

Does it indicate a problem?
Title: Re: Your suggestions of missing runscripts for packages
Post by: mandog on 28. June 2015, 16:22:26
artoo
Can you please do a vnstat package for manjaro
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 28. June 2015, 17:11:13
artoo
Can you please do a vnstat package for manjaro

Will be in unstable today, along with typo fix for nginx post_install msg.
Title: Re: Your suggestions of missing runscripts for packages
Post by: mandog on 28. June 2015, 18:02:42
Will be in unstable today, along with typo fix for nginx post_install msg.
Wow you are on the ball thanks
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 26. September 2015, 07:56:17
eudev-openrc is deprecated. You can simply delete it.

Why is that?
Title: Re: Your suggestions of missing runscripts for packages
Post by: Alventoor on 29. September 2015, 09:35:27
Hello,

I'm a user of OpenRC and Unbound and I wanted to warn you that it lack a script OpenRC for Unbound.

PS: Sorry if my English is bad, I'm French.
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 05. January 2016, 19:52:02
Hello,

I'm a user of OpenRC and Unbound and I wanted to warn you that it lack a script OpenRC for Unbound.

PS: Sorry if my English is bad, I'm French.

Took me a while, but I finally managed to upload unbound-openrc package.
Title: Re: Your suggestions of missing runscripts for packages
Post by: CorePoint on 11. January 2016, 15:31:52
hey, a dnscrypt runscript would be nice.

thank you for offering this!
Title: Re: Your suggestions of missing runscripts for packages
Post by: dr-kart on 14. January 2016, 22:25:03
redshift would be nice )) It works without init script. Autostart is made by redshift-gtk
Quote
Keeps Your Eyes Sharp & Helps You Sleep
Title: Re: Your suggestions of missing runscripts for packages
Post by: mrbrklyn on 21. February 2016, 04:44:14
eudev-openrc is deprecated. You can simply delete it.

Really?  Why is that?
Title: Re: Your suggestions of missing runscripts for packages
Post by: nous on 22. February 2016, 16:13:31
Artoo, could you add distcc to your runscripts packages?
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 22. February 2016, 17:57:00
Artoo, could you add distcc to your runscripts packages?

Done.  :)
Title: Re: Your suggestions of missing runscripts for packages
Post by: nous on 25. February 2016, 08:57:31
Cheers!
Title: Re: Your suggestions of missing runscripts for packages
Post by: CorePoint on 20. March 2016, 21:33:48
Hey,

libvirt needs virtlogd now.

I used the gentoo init script for it.

Code: [Select]
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

description="libvirt virtual machine logging manager"
command="/usr/sbin/virtlogd"
command_args="-d"
pidfile="/var/run/virtlogd.pid"

extra_started_commands="reload"
description_reload="re-exec the daemon, while maintaining open connections"


depend() {
    after ntp-client ntpd nfs nfsmount corosync
}

reload() {
    ebegin "re-exec() virtlogd"

    start-stop-daemon --signal SIGUSR1 \
      --exec "${command}" --pidfile "${pidfile}"
}


Spewed out and error (don't know it anymore, sorry. but i can look it up again if needed) but it does seem to work.

Would be cool if it would be added to the repos.
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 20. March 2016, 21:41:40
I'll update libvirt-openrc
Thx for reporting.
Title: Re: Your suggestions of missing runscripts for packages
Post by: CorePoint on 20. March 2016, 22:10:56
Thank you!
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 20. March 2016, 23:12:37
Thank you!

I have put updated libvirt-openrc in unstable.
Title: Re: Your suggestions of missing runscripts for packages
Post by: CorePoint on 29. March 2016, 17:20:47
Seems to be in stable now and works without problems.

Thanks artoo
Title: Re: Your suggestions of missing runscripts for packages
Post by: Tailor on 30. March 2016, 06:20:00
djbdns implements DNSCurve cache. It's in AUR and Alpine may offer an OpenRC script to copy.
https://dnscurve.io/software/
https://aur.archlinux.org/packages/djbdns-djb/
https://pkgs.alpinelinux.org/packages?name=djb%25&repo=all&arch=x86_64&maintainer=all
Title: Re: Your suggestions of missing runscripts for packages
Post by: curiouseag on 13. April 2016, 21:07:43
pulseaudio


I borrowed the openrc runfile from github. Someone already created it but it is not part of the repo yet.
Title: Re: Your suggestions of missing runscripts for packages
Post by: artoo on 30. April 2016, 16:53:42
djbdns implements DNSCurve cache. It's in AUR and Alpine may offer an OpenRC script to copy.
https://dnscurve.io/software/
https://aur.archlinux.org/packages/djbdns-djb/
https://pkgs.alpinelinux.org/packages?name=djb%25&repo=all&arch=x86_64&maintainer=all

I won't provide openrc script packages inn our repos that depend on AUR package, unless someone want to maintain that AUR package for our repo.
Sorry.