[05:12] <fedora_newb> I am trying to start multiple services with another service. However, I am having a hard time of getting it setup. I keep getting unknown job attendance. However, I can start attendance outside of the control no problem. http://pastebin.com/zN9fP0Gr
[09:14] <AnrDaemon> fedora_newb: You should use events to manipulate job start. Never call "initctl start" directly without a good reason. A VERY good reason, and even then - don't.
[09:15] <AnrDaemon> If all you need is to change the start parameters of another job, make an .override with desired "start on" clause.
[19:30] <ruptwelve> Hello Upstart peoples
[19:30] <ruptwelve> Is anyone around to assist with a question I have ?
[19:30] <ruptwelve> Regarding script stanzas and exit codes
[19:31] <ruptwelve> The issue I am having is parsing errors from apache startup
[20:21] <AnrDaemon> ruptwelve: What specifically you are "parsing" ?
[20:21] <ruptwelve> So
[20:21] <ruptwelve> I have an upstart config
[20:21] <ruptwelve> that runs httpd with some arguments
[20:22] <ruptwelve> when I run initctl start httpd I get the message: httpd start/running PID xxxx
[20:22] <AnrDaemon> Want an advice? Ditch as many "arguments" as possible.
[20:22] <ruptwelve> Regardless if the apache server started or not
[20:22] <ruptwelve> right
[20:22] <ruptwelve> so event if I run just /usr/sbin/httpd
[20:22] <AnrDaemon> Tell apache to not daemonize.
[20:22] <ruptwelve> Should I get an exit code ?
[20:23] <AnrDaemon> You ALWAYS get an exit code, when program exits.
[20:23] <ruptwelve> right
[20:23] <ruptwelve> but I always get a 0
[20:23] <ruptwelve> even if Apache did not start
[20:23] <AnrDaemon> Yes. So, again.
[20:24] <AnrDaemon> FFFFFFFFFFFFFFF
[20:25] <AnrDaemon> 1. If you are delegating all active scripting to other daemons or running mpm-itk, tell apache to not daemonize.
[20:25] <AnrDaemon> 2. If you are using active content filters, then see cookbook, "tracking the wrong PID".
[20:26] <AnrDaemon> In either case, do not test it on live system.
[20:26] <ruptwelve> This is not a live system so that is fine
[20:26] <AnrDaemon> And always ensure that initctl status reporting "stopped".
[20:26] <ruptwelve> what I am trying to achieve here is to be sure weather apache did start or not
[20:27] <AnrDaemon> Before starting the job again.
[20:27] <ruptwelve> Right
[20:27] <AnrDaemon> upstart will manage that by itself, once you set up PID tracking correctly.
[20:27] <AnrDaemon> I hope you do not use any wrapper scripts?
[20:27] <ruptwelve> Allow me to paint  a picture
[20:28] <AnrDaemon> Better pastebin your job script :)
[20:28] <ruptwelve> sure one sec
[20:28] <AnrDaemon> That would be an image worth 1000 words.
[20:31] <ruptwelve> so
[20:31] <ruptwelve> http://pastebin.com/raw/CUYkRcGX
[20:31] <ruptwelve> that is httpd.conf
[20:31] <ruptwelve> under /etc/init/
[20:31] <AnrDaemon> Use exec. Not script.
[20:32] <AnrDaemon> And use upstart to set ulimits.
[20:32] <AnrDaemon> And other vars.
[20:33] <ruptwelve> And this is a part of the /etc/init.d/httpd
[20:33] <ruptwelve> http://pastebin.com/raw/ZTCBNNBu
[20:33] <ruptwelve> Which triggers initctl
[20:34] <AnrDaemon> If you have init/httpd.conf the init.d/httpd will only be called by idiots and degenerates.
[20:35] <ruptwelve> well
[20:35] <AnrDaemon> "service" wrapper will find upstart/systemd scripts before init.d
[20:35] <ruptwelve> right
[20:35] <ruptwelve> but even if just using initctl
[20:35] <AnrDaemon> Just make sure you update-rc.d -f apache2 remove
[20:36] <AnrDaemon> Ok, to reiterate:
[20:36] <AnrDaemon> 1. You're using wrapper script. Thus making the job of finding the right PID to track unnecessarily hard.
[20:37] <AnrDaemon> 2. You're using runlevels instead of proper signals. start on local-filesystems and net-device-up IFACE!=lo is usually sufficient.
[20:38] <AnrDaemon> Also remove any "respawn" stanzas until your job is tracking the right pid.
[20:38] <ruptwelve> Okay! Thank you for clearing some stuff up AnrDaemon
[20:39] <ruptwelve> But I still don't understand why I cannot just get an exit code other than 0 from the initctl script ?
[20:39] <ruptwelve> Even if  I just run exit 1
[20:39] <ruptwelve> "exec exit 1"
[20:40] <ruptwelve> if I run initctl start httpd
[20:40] <ruptwelve> echo $?
[20:40] <ruptwelve> I will always get 0
[20:41] <AnrDaemon> Because "initctl start ..." sends signal to init daemon, and if signal is sent all proper, the exit code is a success.
[20:41] <ruptwelve> right
[20:41] <ruptwelve> That makes sense
[20:41] <AnrDaemon> Also I'm not sure "exit" is an actual binary. :D Try /bin/false
[20:41] <ruptwelve> my bad :) I just ran exec exit 1 and got a 1
[20:41] <ruptwelve> so I did not test it
[20:42] <ruptwelve> under script tho, it is still 0
[20:42] <AnrDaemon> I'm very suspicious of any scripts in upstart job as of late.
[20:42] <ruptwelve> Yeah, unfortunately due to the /bin/sh -e
[20:42] <ruptwelve> if any of the commands fail, the script exits
[20:43] <ruptwelve> and it just ends there
[20:43] <ruptwelve> no error or nothing :/
[20:48] <AnrDaemon> Plus you have test ${PIPESTATUS[0]} -eq 0
[20:49] <ruptwelve> yeah that is just to test the output before tee
[20:50] <ruptwelve> but even if I have /usr/sbin/httpd -D FOREGROUND
[20:50] <ruptwelve> i still get the same result
[20:51] <AnrDaemon> http://pastebin.com/M6AUXFzy
[20:51] <AnrDaemon> Something like that. (untested)
[20:52] <AnrDaemon> Err, typo in #14.
[20:54] <ruptwelve> I see :)
[20:54] <ruptwelve> the expect for marks the service as running
[20:54] <ruptwelve> even though it is not
[20:55] <AnrDaemon> That's why I said it needs testing and correct handling.
[20:55] <AnrDaemon> http://upstart.ubuntu.com/cookbook/#expect
[20:56] <ruptwelve> Well thank AnrDaemon, you were of assitance
[20:56] <ruptwelve> I spent the entire day googling this
[20:56] <AnrDaemon> Googling what? :D
[20:56] <ruptwelve> upstart and exit codes :D
[20:56] <ruptwelve> I was hoping that it would return an exit code of the script block
[20:56] <AnrDaemon> Sorry, it was on my todo list to make apache2 run from upstart, but I didn't find time to actually port it.
[20:57] <ruptwelve> but I guess it doesn't work
[20:57] <ruptwelve> as I expected
[20:57] <ruptwelve> Well, the thing is it starts
[20:57] <AnrDaemon> It works but not the way you expect.
[20:57] <ruptwelve> I can have it run no problem
[20:57] <ruptwelve> I just want to make sure it runs with error handling
[20:57] <AnrDaemon> Just ask yourself one question: when the system is booting, where to return the exit codes?
[20:57] <ruptwelve> Hmm, let me explain a bit
[20:57] <AnrDaemon> upstart is designed to do precisely that.
[20:58] <ruptwelve> I have this big wrapper application around the server(s)
[20:58] <ruptwelve> that restarts the apache server once you push new data to it
[20:58] <AnrDaemon> To not just start the job, but also suprvise its execution.
[20:58] <ruptwelve> new configs / applications / whatever
[20:58] <AnrDaemon> That's parallel to init daemon's job.
[20:58] <ruptwelve> and it runs service stop httpd
[20:58] <ruptwelve> copies new stuff
[20:58] <ruptwelve> service start http d
[20:59] <AnrDaemon> Well, that's the wrong way to do it…
[20:59] <ruptwelve> and from the applications perspective everything started fine
[20:59] <AnrDaemon> You don't need to stop httpd just to upload new data.
[20:59] <AnrDaemon> LEarn the power of atomic operations ;)
[20:59] <ruptwelve> as there is no error from initctl regarding starting apache
[20:59] <ruptwelve> ah no :)
[20:59] <ruptwelve> well I can also upload a new version of httpd.conf :)
[21:00] <AnrDaemon> Well, then you are probably better off with something like LXD or docker.
[21:00] <ruptwelve> And I can have a user make a mistake in the httpd.conf
[21:00] <ruptwelve> and he wont know why apache did not start
[21:00] <ruptwelve> it will just show as started
[21:00] <ruptwelve> right! :) You have a point, there are so many better ways to do this
[21:00] <ruptwelve> but that is not my call ;)
[21:00] <ruptwelve> I am just trying to find the best solution here
[21:01] <AnrDaemon> No, if apache did not start, it will not be shown as started.
[21:01] <ruptwelve> Correct!
[21:02] <AnrDaemon> Also, make pre-start script with apachectl -t
[21:02] <ruptwelve> But the actual output of initctl start httpd will be good
[21:02] <ruptwelve> yes I did that :)
[21:02] <ruptwelve> but that just checks the configuration
[21:02] <ruptwelve> I would like to be more resiliant
[21:02] <AnrDaemon> Well, it have more options…
[21:02] <ruptwelve> for example if the  socket is occupied
[21:02] <AnrDaemon> It is as resilient as possible.
[21:02] <ruptwelve> Wish there was a dry-run option for apache :)
[21:02] <AnrDaemon> If pre-start script fails, the job will never run in forst place.
[21:03] <AnrDaemon> first**
[21:03] <AnrDaemon> And thus you can take actions.
[21:04] <ruptwelve> That is fine
[21:04] <ruptwelve> when it comes down to config
[21:04] <ruptwelve> but is there an option to dry-run apache?
[21:04] <ruptwelve> Like a test run, to just make sure it will run - and if so, just continue with upstart
[21:07] <AnrDaemon> That's what apachectl do. Else it wouldn't be able to test config.
[21:08] <AnrDaemon> Since module-dependent options can only be recognized by the respective modules.
[21:08] <ruptwelve> but what happens if there a port already occupied ?
[21:08] <ruptwelve> that is if the socket is not available
[21:08] <ruptwelve> hmm let me test that :)
[21:08] <AnrDaemon> Nothing. (If we talk about test runs.)
[21:09] <ruptwelve> oh nice
[21:09] <ruptwelve> It actually tests that <3
[21:09] <ruptwelve> THERE IS MY SOLUTION
[21:09] <ruptwelve> You Sir deserve a beer
[21:10] <AnrDaemon> Sure. Golden Barrel light 0.5 will suffice. In glass, please.
[21:10] <ruptwelve> I guess Golden Barrel is American?
[21:10] <ruptwelve> Russian!
[21:10] <AnrDaemon> hehehe
[21:18] <AnrDaemon> I guess it testing if the port is occupied by some other application?
[21:18] <ruptwelve> Correct
[21:18] <ruptwelve> I am just trying to finish up the .conf file
[21:18] <ruptwelve> I will share once I am done :)
[21:19] <AnrDaemon> Ahha. 'Cause I've tried to find a way for it to break when it is already running. With no success.
[21:20] <AnrDaemon> I've 2 weeks since I moved most of my services into containers. And there's at most 2 services running per each.
[21:20] <AnrDaemon> Ok, plus Samba where it is applicable.
[21:20] <AnrDaemon> (I.e. MySQL container runs only MySQL with minimum support.)


[00:00] <AlanBell> still a few bugs, user preferences doesn't work for me
[00:00] <AlanBell> bradm is doing the work and is in australia so well out of my time zone
[00:01] <AlanBell> and adding a page subscription doesn't seem to invalidate the cache like it should so that needs fixing
[00:01] <charlie-tca> but it is still a gain
[00:02] <charlie-tca> anything on getting the theme we want?
[00:02] <AlanBell> yeah, that was put up on 27th May, but there was no performance increase until yesterday when I found the GetSubscriberSlow patch for them to implement
[00:02] <AlanBell> no, not discussed themes at the moment
[00:02] <AlanBell> that involves different people
[00:03] <charlie-tca> heh, sorry
[00:04] <charlie-tca> I would be happy with something that doesn't fail every page change
[00:04] <AlanBell> me too
[00:04] <charlie-tca> I am back to "modern" theme, since none of the sidebar themes work right anymore. Too many fixed size headers and stuff
[00:07] <AlanBell> I use light, but I don't like it that much
[00:07] <AlanBell> just wish they had stuck with the old Ubuntu theme and changed the brown to orange and the font to the ubuntu font
[00:08] <charlie-tca> agreed. It would have worked better
[00:14] <phillw> I know the feeling
[00:15] <phillw> sorry, was away on dogs needing out duties :)
[00:19] <phillw> and for something quite spectacular, next time you want to just have a couple of minutes of a fantastic 1.5 minute long vid, have a look at https://www.facebook.com/l.php?u=http%3A%2F%2Fvimeo.com%2F21294655&h=1dfd1 It left me speechless, (his two other vids plus his photography work is also pretty breathtaking). About the 1st time I've found FaceBook to be of use!


[13:50] <pleia2> putting release announcement on fridge
[13:51] <smartboyhw> pleia2, \o/
[14:21]  * pleia2 goes back to sleep


[08:54] <Punk_Boi_8> Hi, Im new to the project
[08:55] <Punk_Boi_8> My names Nathan
[08:55] <Punk_Boi_8> helllllllllo?
[08:56] <Punk_Boi_8> Is this the Ubuntu Art IRC room
[08:56] <Punk_Boi_8> Plz respond
[08:57] <Punk_Boi_8> Hello?
[08:57] <Madpilot> Punk_Boi_8, hi. It's usually pretty quiet in this room
[08:57] <Punk_Boi_8> thx
[08:57] <Punk_Boi_8> Im new
[08:57] <Madpilot> the mailing list is often a better way to reach the art team
[08:57] <Punk_Boi_8> thx, ive joined
[08:57] <Punk_Boi_8> I use windows, but I am making a attempt to dual-boot with Ubuntu
[08:58] <Madpilot> cool. Just starting out with Ubuntu?
[08:59] <Punk_Boi_8> Yeah
[08:59] <Punk_Boi_8> Used to edit Wikipedia, but got banned for ignoring my mentor
[08:59] <Punk_Boi_8> liked the idea of open source, so I came here
[08:59] <Madpilot> heh. Welcome to Ubuntu, anyway.
[08:59] <Punk_Boi_8> thx
[09:00] <Punk_Boi_8> Im on lanucpad, tring to find the specs
[09:00] <Punk_Boi_8> can I have some help?
[09:00] <Madpilot> art specs? Not sure - I'd start out on the artteam's homepage on lp
[09:02] <Punk_Boi_8> found it
[09:02] <Madpilot> to be honest, art team has been pretty quiet lately
[09:04] <nothlit> the lp tasks aren't really there for us to fill
[09:05] <Punk_Boi_8> Well, Ive just surcribed to a task
[09:05] <nothlit> mostly this channel acts as a springboard for oss art people that use ubuntu, or try to submit some extra artwork, packages, themes
[09:05] <Punk_Boi_8> oh, I found on the wiki this is a great place to start
[09:06] <Punk_Boi_8> Ive got to leave, thx 4 ur help
[09:06] <Punk_Boi_8> Bye


[18:16] <gigirock> !info tasksel
[18:16] <ubot-it> tasksel (source: tasksel): tool for selecting tasks for installation on Debian systems. In component main, is optional. Version 3.34ubuntu16 (focal), package size 27 kB, installed size 244 kB


[00:19] <Roey> hello all again
[00:19] <Roey> arraybolt3: o/
 7UT2
 7UP2
 7U2
 7U2
 7UI2
 7Ul2
 glwS
 g1wS
 g1BS
 g1w5
 glws
 61ws
 91ws
 91w5
 9lws
 9lw5
 g1BS
 g1BS
 glBS
 9lBS
 9IBS
 OdAS
[01:48] <Roey> hi, so, question..... so I'm in the kubuntu livecd.  I've dropped to a Konsole shell, have defined a couple of partitions, etc.  for BTRFS, what I am looking to do is (a) create a luks volume, (b) open it (c) create a BTRFS voluem on that and (d) define subvolumes for / and /home
 play on Linux can't access server 😖
 Hi guys, I was using wine to play some games like rocket league but it got an error "wine can't read/access device "xxx", F5 volume lable etc... Does anyone know how to resolve it? I put rocket league folder into .wine but it didn't work
 Hi guys, I was using wine to play some games like rocket league but I got an error "wine can't read/access device "xxx", F5 volume lable etc... Does anyone know how to resolve it? I put rocket league folder into .wine but it didn't work
 Hi guys, I was using wine to play some games like rocket league but I got an error "wine can't read/access device "xxx", F5 volume lable etc... Does anyone know how to resolve it? I put rocket league folder into .wine but it didn't work
 (I'm used to starting with Lutris)
[13:30] <kubuntu> hello
[13:31] <kubuntu> i am having trouble with my wifi card
[13:31] <kubuntu> https://ibb.co/mRYWsST
[13:31] <kubuntu> It wont apply changes
[13:38] <kubuntu> hello?
[13:44] <BluesKaj> Hi all
[13:58] <snowhawk> helol
[13:58] <snowhawk> hello* i need help!
[14:02] <BluesKaj> snowhawk:  then ask your question with more detail
[15:15] <user|73> I have been running Kubuntu 18. and started updating my computers to Kubuntu 22.04.  After the update, the login screen no longer shows the pictures of all the users on the computer, just the first user entered.  How can I get all my user pics back on the login screen?
[15:21] <BluesKaj> user|73:  system settings/startup&shutdown/login screen(sddm)/install from file ..choose the file path to your users pics. You may have make up a collage of all the users pics fist though
[15:21] <BluesKaj> fist=first
[15:34] <snowhawk> hello
[15:35] <snowhawk> how do I prevent wifi d/c while in standby mode?
[21:17] <user|28> Witam
[22:09] <shadowhawk> hello


[02:27] <feoh> Hiya folks
[02:27] <feoh> I have 18.10 running!
[02:28] <feoh> Odd issue though, it fails to start X when it boots. I have to run startx, then most things work OK (except sleep still. Still need to disable that)
[02:28] <feoh> I don't see anything unusual in the X logs. Does anyone have any suggestions about log files I should attach when reporting the bug?
[02:31] <feoh> just realized I'm logged in as root. Oops :)
[17:45] <kwah> got advice that I need to add extra info to bug 1796433
[17:45]  * kwah confused
[17:46] <kwah> ubuntu-bug does not seem to provide option on updating specific bug...
[17:46] <lotus|NUC> kwah: create the bug again from terminal: ubuntu-bug linux
[17:46] <lotus|NUC> alot of usefull info is added like that
[17:46] <kwah> you mean *new* bug?
[17:47] <lotus|NUC> yes
[17:47] <kwah> lotus|NUC: OK. will do.
[17:47] <kwah> tnx
[22:54] <howarth> is there a preferred ppa for the nvidia drivers on cosmic?
[22:58] <Bashing-om> howarth: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa .
[23:00] <howarth> what is the correct apt-get to install the complete driver?
[23:02] <Bashing-om> howarth: the instructions are in the link . add to PPA - ipdate the syste, ( sudo apt update ; sudo apt full-upgrade ; sudo ubuntu-drivers autoinstall ' .
[23:02] <Bashing-om> update the systenm*
[23:22] <howarth> seeing the same error described here https://ubuntuforums.org/showthread.php?t=2388026
[23:25] <Bashing-om> howarth: Pastebin your results ' sudo apt update ' . See where we go from there .
[23:31] <howarth> why does the nvidia-driver-396 drag in libdrm-nouveau2?
[23:36] <Bashing-om> howarth: Maybe this expmation: http://albertomilone.com/blog/?p=670 ?
[23:38] <howarth> well that isn't fixed in 18.10 yet as I still get a black screen