{SOLVED} Delete core dumps?

Post your general questions or comments about GhostBSD here!
JTJersey
Posts: 11
Joined: Sat Apr 03, 2021 8:18 pm

{SOLVED} Delete core dumps?

Post by JTJersey »

Since installing GhostBSD 12.2 a few days ago I've got several core dump files in my home folder. Can I delete them? They average about 40Mb in size each.
Last edited by JTJersey on Wed Apr 14, 2021 7:53 pm, edited 1 time in total.
qubit
Posts: 10
Joined: Mon Apr 05, 2021 6:21 am

Re: Delete core dumps?

Post by qubit »

From time to time I delete the core dump files in my home folder.

Have not seen any problems with it so far...
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Delete core dumps?

Post by ericbsd »

It is save to delete.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Delete core dumps?

Post by ericbsd »

You can remove dumpon and savecore from boot services.

Code: Select all

rc-update delete savecore boot
rc-update delete dumpon boot
qubit
Posts: 10
Joined: Mon Apr 05, 2021 6:21 am

Re: Delete core dumps?

Post by qubit »

Very nice. Thank you, this is what I have been looking for quite a while.
JTJersey
Posts: 11
Joined: Sat Apr 03, 2021 8:18 pm

Re: Delete core dumps?

Post by JTJersey »

Not being a programmer, how do I implement those two lines of code? In a terminal gets me this: rc-update: service `savecore' is not in the runlevel `boot'
qubit
Posts: 10
Joined: Mon Apr 05, 2021 6:21 am

Re: Delete core dumps?

Post by qubit »

You use them simply in a terminal, that's right. You need superuser rights:
'sudo rc-update delete dumpon boot'

In a terminal 'rc-update' without option shows all runlevels and services.
If `savecore' is not listed in the output, it will not getting started at boot.

There is a detailled explanation in the wiki:
rc-update
JTJersey
Posts: 11
Joined: Sat Apr 03, 2021 8:18 pm

Re: Delete core dumps?

Post by JTJersey »

Did try that as superuser, but got same message about not being in runlevel boot. rc-update in a terminal doesn't list either savcore or dumpon services, so I guess something else is causing the core dump files to show up in my Home folder.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Delete core dumps?

Post by ericbsd »

Just run rc-update by itself it will give you the list of services and at what level they are.

also, savecore might not be set up.
JTJersey
Posts: 11
Joined: Sat Apr 03, 2021 8:18 pm

Re: Delete core dumps?

Post by JTJersey »

Thanks. I appreciate your taking time to respond. This is all I've got after running rc-update.
System Log Viewer/messages shows me this, if it's of any use to you. I've gotten this same message for every day I've booted the system.
Apr 10 13:15:43 gnome-keyring-daemon[3541]: couldn't access control socket: /var/run/user/1002/keyring/control: No such file or directory
Apr 10 13:15:43 mate-session[3520]: WARNING: Unable to find provider '' of required component 'dock'
Apr 10 13:15:44 gnome-keyring-daemon[3541]: The Secret Service was already initialized
Apr 10 13:15:44 gnome-keyring-daemon[3541]: The PKCS#11 component was already initialized
Apr 10 13:15:44 gnome-keyring-daemon[3541]: The SSH agent was already initialized

Image
Attachments
Screenshot at 2021-04-09 18-32-28.png
Post Reply