Can this be done without adding user to local Administrators group? All I need is to remotely stop app pool, create site and start the pool again. I'm trying to do this with Powershell script. I keep getting "A drive with the name 'IIS' does not exist."
Kuroki Kaze's questions
I want to automatically add public key from newly created machine to github account (so it could checkout organization projects). Is there any simple way to do that? Machine OS is Debian Wheezy.
I make JSON API and when measuring performance there's this strange thing. When doing XDEBUG_PROFILE, request processing takes about 100 ms. But browser network panel says it's always 1 - 1.5 seconds. Why so big difference and how do I know what causes it?
System is GNU/Linux, Apache 2.2.17
I'm trying to write init
config that will redirect output of my daemon to two files (for stdout and stderr). The problem is, it's not working. I'm reading this right now.
So, I've done this shell script to test this approach. And it doesnt' work:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Seed kurokikaze starter"
#NAME=node
DAEMON="/etc/node-version/0.1.99/bin/node"
DAEMON_ARGS="/etc/seed/kurokikaze/server.js"
DAEMON_DIR="/etc/seed/kurokikaze"
APPLOG_FILE="/var/log/seed/kurokikaze"
ERRLOG_FILE="/var/log/seed/kurokikaze-err"
PIDFILE="/var/run/seeds/kurokikaze.pid"
SCRIPTNAME="/etc/seed-init/kurokikaze"
NCMD="exec $DAEMON $DAEMON_ARGS 1>>$APPLOG_FILE 2>>$ERRLOG_FILE"
start-stop-daemon -Sbmv --pidfile $PIDFILE --chdir ${DAEMON_DIR} --exec $DAEMON --startas /bin/sh -- $NCMD
But if you start this without wrapping daemon in separate shell, it works as intended (just without stderr/stdout redirects):
start-stop-daemon -Sbmv --pidfile $PIDFILE --chdir ${DAEMON_DIR} --exec $DAEMON -- ${DAEMON_ARGS}
The question is: why first script doesn't work? System is Debian Lenny, start-stop-daemon
version is 1.14.29
I have Debian Lenny box, where I plan to extensively use start-stop-daemon
. The trouble is, the standard Debian start-stop-daemon
doesn't support output redirection: --stdout
and --stderr
keys, which I want to use to log daemons activity.
Should I just update start-stop-daemon
from sources? I tried apt-get
update process, the version still lacks features. Will it break something in Debian? Or should I compile new start-stop-daemon
to some new directory and use it for my daemons, leaving standard Debian package in place?
I don't want to write .sh
wrapper scripts to each daemon, as there will be many of them.
I've set up gitosis and able to pull/push through ssh. Gitosis is installed on Debian Lenny server, I'm using git from windows machine (msysgit). The strange thing, if I enable loglevel = DEBUG
in gitosis.conf, I see something like this when doing any actions with gitosis server:
D:\Kaze\source\test-project>git pull origin master
DEBUG:gitosis.serve.main:Got command "git-upload-pack 'test_project.git'"
DEBUG:gitosis.access.haveAccess:Access check for '[email protected]' as 'writable' on 'test_project.git'...
DEBUG:gitosis.access.haveAccess:Stripping .git suffix from 'test_project.git', new value 'test_project'
DEBUG:gitosis.group.getMembership:found '[email protected]' in 'test'
DEBUG:gitosis.access.haveAccess:Access ok for '[email protected]' as 'writable' on 'test_project'
DEBUG:gitosis.access.haveAccess:Using prefix 'repositories' for 'test_project'
DEBUG:gitosis.serve.main:Serving git-upload-pack 'repositories/test_project.git'
From 192.168.175.128:test_project
* branch master -> FETCH_HEAD
Already up-to-date.
Question is: why am I [email protected]? This email is in global user.email
config variable, too.
Yesterday, when the gitosis was installed, it seen me as kaze@KAZE, this is the name under which I was added to gitosis-admin group (and it worked). But today git (or gitosis) started to see me as [email protected]. This is true for all repositories I push or clone. I had to add this address to gitosis.conf
directly on server to be able to edit configs again (it worked). There are 2 public keys in keydir
: [email protected]
and [email protected]
, their content is identical and they have kaze@KAZE at end. Origin URL looks like git@lennyserver:test_project
.
Now, the question is - why Git (or gitosis) suddenly decided to call me by email instead of name@machinename? I've changed a couple things trying to set up Gitosis (updated git on server to 1.6.0 for example), but maybe I broke something in my local git installation?
I just installed git 1.6.0 from source, but strange thing now happening to me:
debian:~/git# git version
git version 1.5.6.5
debian:~/git# which git
/usr/local/bin/git
debian:~/git# /usr/local/bin/git version
git version 1.6.0
How can I make 1.6.0 binary default? System is Debian Lenny. Git installed with simple ./configure && make && make all
.
I have very simple bot that gathers and parses web pages. It's on a machine in network, behind NAT (so I cannot setup a web server, for example). I don't have MTA set up. The bot should notify me about changes in parsed pages (once in a hour or two, to one recipient). How can this be done?
Is there any RESTful email gateways, like SMS ones?
I can set up him a twitter account and use curl
to post statuses/DM, but it's a very temporary bot.
UPD: Right now the problem is solved by setting up custom PHP HTTP-to-email gateway on remote server with MTA. The bounty still will be awarded to the best answer (I'm interested in another solutions to this problem, just in case).
I need to create a daemon from the application in Debian. Is there any standard tool for this in Debian like "upstart" in Ubuntu? I need only start-stop commands, to start a program as a daemon with some options and a pid file and kill it with pid file.
I looked at init.d but it seems these are for boot-time launch. I want to start my daemon manually.
With upgrade of VMWare Player I suddenly found my Debian Lenny VM not getting IP address. Some DHCP issue maybe, I don't know. So I have to set it manually every boot in Player window, via:
ifconfig eth0 down
ifconfig eth0 192.168.175.128 netmask 255.255.255.0 up
I usually start up VM and then connect to it via SSH, so this procedure bothers me. Sure I can add it to startup script, but is there some special place to enter these values? Like, some config file or so?