
ubuntu16.04.1, systemd An application depends on mongodb. The application and mongodb both start on boot as services. app.service containts next line: After=network.target mongod.service Unfortunately, the application fails (with coection to database error), I guess, because the mongodb needs some time to startup and be ready to coections (if I start the app later, everything is ok). It looks like Type=notify (in [Service] section of mongod.service) will solve the problem if mongodb sends apropriate notification to systemd. But I did not find any documentation about it. The queston is, how to autostart the application, after mongodb will be ready for incoming coections. Let's block ads! ب...
ادامه مطلب
Background: My package manager seems to have managed to mess up my network daemon so it won't properly manage networks and instead exit with a failure (non-zero) status code. (The particular code is 226/NAMESPACE). Simply searching for these does not give me any helpful pages at all. Does anyone know where to find the exit codes for this program, and what this error means in particular? Let's block ads! بخوانید...
ادامه مطلب
I have a question about my S.M.A.R.T. daemon configuration. I use two HDDs as RAID 1 observed with smartd. In general these are suspended, i just access them one time in two days. I've noticed the HDDs spin up every 30 minutes, because of some "checks". What do these checks do? What are offline tests for? What is the difference between short and long selftests? I want to do a long test from time to time (e.g. once a month). I want to do a short test more frequently (once a week). It is useful to do an offline test daily? Is my configuration suggestive? Do -n suspend suppress short and long selftests, too? DEFAULT -a -o on -S on -s (O/../.././03|S/../(1|8|22)/./03|L/../15/./03) -n standby -d...
ادامه مطلب
I don't think this is a duplicate of this but if it is, please feel free to mark it as such. I'm ruing collectd to gather metrics from my home lab, as well as my home energy usage, and feed it into influxdb to display in grafana. If I launch collectd via command line: collectd -C /etc/collectd/collectd.conf collectd runs, collects other metrics, and collects my home-energy usage just fine (i see values in influxdb). If I try launching collectd via it's init script /etc/init.d/collect start Collectd starts, gathers metrics, however I don't see any results in influx for my energy colection script. One thing I did notice, is that if I strace the collection script process, I see different ...
ادامه مطلب
Is there something less verbose, more like a chart that tus easier to figure modules and Keel load on boot? I've tried old bootchart but it keel panicked. If not, dmesg is the only choice? Not that it is horrible but, it takes more time to figure problem. Let's block ads! بخوانید...
ادامه مطلب
By default udisks2 mounts removable drives under /run/media/$USER/[UUID]. The UUID contains hyphens. I wanted to use this mount point in a systemd service. But systemd uses hyphens instead of forward slashs. man systemd.mount tells me: Mount units must be named after the mount point directories they control. Example: the mount point /home/leart must be configured in a unit file home-leart.mount. Can /run/media/daniel/76ya27o9-abce-81fv-8j2hj-casjkdjhhlasfd/ be used in a systemd service because of the hyphens? If yes, how? This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content...
ادامه مطلب