Author Topic: Your suggestions of missing runscripts for packages  (Read 17238 times)

0 Members and 1 Guest are viewing this topic.

MatthewAllan

  • Guest
Re: Your suggestions of missing runscripts for packages
« Reply #45 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

Offline aaditya

  • OpenRC Team
  • ****
  • Posts: 2844
    • My Website
  • Branch: Testing
  • Desktop: Xfce, Openbox
  • GPU Card: Intel HD 4000
  • Kernel: Linux 4.4 x86_64
  • Skill: Intermediate
Re: Your suggestions of missing runscripts for packages
« Reply #46 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

MatthewAllan

  • Guest
Re: Your suggestions of missing runscripts for packages
« Reply #47 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?
« Last Edit: 26. February 2015, 11:27:27 by MatthewAllan »

Offline aaditya

  • OpenRC Team
  • ****
  • Posts: 2844
    • My Website
  • Branch: Testing
  • Desktop: Xfce, Openbox
  • GPU Card: Intel HD 4000
  • Kernel: Linux 4.4 x86_64
  • Skill: Intermediate
Re: Your suggestions of missing runscripts for packages
« Reply #48 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
« Last Edit: 26. February 2015, 11:35:51 by aaditya »

MatthewAllan

  • Guest
Re: Your suggestions of missing runscripts for packages
« Reply #49 on: 26. February 2015, 11:49:55 »
Thanks, I have now added a weekly task for cron to complete :).

Offline artoo

  • OpenRC Team
  • ****
  • Posts: 2373
  • Branch: Unstable
  • Desktop: LXQT/Plasma5, openrc & eudev
  • Kernel: x86_64
  • Skill: Advanced
Re: Your suggestions of missing runscripts for packages
« Reply #50 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.

MatthewAllan

  • Guest
Re: Your suggestions of missing runscripts for packages
« Reply #51 on: 26. February 2015, 13:18:34 »
Ok thanks artoo :).

Offline jbernardo

  • Neuling
  • *
  • Posts: 8
  • Branch: OpenRC
  • Desktop: XFCE & Kde
  • GPU Card: ATI 6670
  • GPU driver: non-free
  • Skill: Advanced
libvirt missing openrc scripts
« Reply #52 on: 07. March 2015, 16:14:17 »
Hello,
I need openrc init scripts for libvirt, anyone has written them?
Thank you!

Offline aaditya

  • OpenRC Team
  • ****
  • Posts: 2844
    • My Website
  • Branch: Testing
  • Desktop: Xfce, Openbox
  • GPU Card: Intel HD 4000
  • Kernel: Linux 4.4 x86_64
  • Skill: Intermediate
Re: libvirt missing openrc scripts
« Reply #53 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

Offline jbernardo

  • Neuling
  • *
  • Posts: 8
  • Branch: OpenRC
  • Desktop: XFCE & Kde
  • GPU Card: ATI 6670
  • GPU driver: non-free
  • Skill: Advanced
Re: Your suggestions of missing runscripts for packages
« Reply #54 on: 07. March 2015, 18:50:03 »
Thank you! That seems to be what I needed, so I'll test it straight away.

Offline mrbrklyn

  • Vollwertiges Mitglied
  • ***
  • Posts: 205
  • NYLXS
    • mrbrklyn
  • Desktop: wmaker
  • Skill: Advanced
Re: Your suggestions of missing runscripts for packages
« Reply #55 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!

Offline artoo

  • OpenRC Team
  • ****
  • Posts: 2373
  • Branch: Unstable
  • Desktop: LXQT/Plasma5, openrc & eudev
  • Kernel: x86_64
  • Skill: Advanced
Re: Your suggestions of missing runscripts for packages
« Reply #56 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.

Offline jason_ca

  • Neuling
  • *
  • Posts: 5
  • I'm new. Be nice!
  • Skill: Intermediate
Re: Your suggestions of missing runscripts for packages
« Reply #57 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.

Offline Ponder

  • Held Mitglied
  • *****
  • Posts: 577
  • When in doubt, go ahead.
  • Branch: OpenRC/Stable
  • Desktop: Xfce 4.12
  • GPU Card: Intel Haswell IGP
  • GPU driver: Free
  • Kernel: Buttered
  • Skill: Intermediate
Re: Your suggestions of missing runscripts for packages
« Reply #58 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.


« Last Edit: 17. June 2015, 14:55:39 by Ponder »
-- systemd free, by design --

Try Manjaro OpenRC Edition for a Poettering free experience.

Offline aaditya

  • OpenRC Team
  • ****
  • Posts: 2844
    • My Website
  • Branch: Testing
  • Desktop: Xfce, Openbox
  • GPU Card: Intel HD 4000
  • Kernel: Linux 4.4 x86_64
  • Skill: Intermediate
Re: Your suggestions of missing runscripts for packages
« Reply #59 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