@AgustínCovarrubias Yes, don't write "Edit: blah blah". Just edit the question so that someone who reads it for the first time now has all the relevant information. You can remove things thta are no longer relevant.
So, I programmed a simple script to alert on slack whenever the server is rebooted.
What I did:
In /etc/rc0.d/R99reboot-slack: (I tried with R01reboot-slack)
#!/bin/sh
sudo sh /root/scripts/slack/msg.sh "Server restarting...."
and in /root/scripts/slack/msg.sh I have:
#!/bin/bash
MSG=$1
API="...
@AgustínCovarrubias the general way to debug these things is to start with something very simple. For example, change /etc/rc6.d/K99reboot-slack to simply:
#!/bin/sh
date > /tmp/slack
Make it executable, reboot, and see if that prints the date into /tmp/slack.
If that doesn't work, we have narrowed down the possible problems.
@chaskes Yeah, Arch is great. I think I'm a convert, it's been around 6 months now.
Yeah, that's probably the best idea. I would create something like: sudo mkdir /foo && sudo chmod 777 /foo. Just to be sure that there are never any permissions issues.
What do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed?
[Unit]
Description=Log Traffic
[Service]
ExecStart=/home/me/so.pl
[Install]
?
Yeah, but that just means they use systemd. That's th default location though, sop you may as well try creating the directory and putting the unit script there. You could also try this:
@chaskes You might be interested in this (I think it was you I was talking to) but a friend recently introduced me to a band called Owl City. Seems nice.
@Seth I went from hdmi on my pi to vga on an older monitor with a single unit adapter. No cable connecting the 2 ends like I saw when I googled active converter
i am implementing my own top command.is there any formula for calculating TIME+?
and also how to find shared memory of each process(SHR). i cannot find anything in proc.
@Seth @Zacharee1 Ok, I found the adapter and mystery solved. It's an dvi to hdmi in a single unit. The memory got confused because the monitor had both vga and dvi (not hdmi).